mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 12:48:49 +01:00
Add methods to models for archived entities
This commit is contained in:
parent
01bd94d2b3
commit
bbcb236a46
5 changed files with 115 additions and 44 deletions
|
|
@ -328,6 +328,16 @@ Lists.mutations({
|
|||
},
|
||||
});
|
||||
|
||||
Lists.archivedLists = () => {
|
||||
return Lists.find({ archived: true });
|
||||
};
|
||||
|
||||
Lists.archivedListIds = () => {
|
||||
return Lists.archivedLists().map(list => {
|
||||
return list._id;
|
||||
});
|
||||
};
|
||||
|
||||
Meteor.methods({
|
||||
applyWipLimit(listId, limit) {
|
||||
check(listId, String);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue