Added field archivedAt to cards, lists, swimlanes, and boards.

This commit is contained in:
Torsten Bronger 2021-02-01 21:50:53 +01:00
parent 4fc2d7b935
commit 710643d8cb
4 changed files with 33 additions and 3 deletions

View file

@ -43,6 +43,13 @@ Boards.attachSchema(
}
},
},
archivedAt: {
/**
* Latest archiving time of the board
*/
type: Date,
optional: true,
},
createdAt: {
/**
* Creation time of the board
@ -1042,7 +1049,7 @@ Boards.helpers({
Boards.mutations({
archive() {
return { $set: { archived: true } };
return { $set: { archived: true, archivedAt: new Date() } };
},
restore() {