mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Merge branch 'sorted-archives' of https://github.com/bronger/wekan into bronger-sorted-archives
This commit is contained in:
commit
41e1f8fbc3
8 changed files with 57 additions and 5 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue