mirror of
https://github.com/wekan/wekan.git
synced 2026-03-12 16:42:33 +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
|
|
@ -283,6 +283,16 @@ Swimlanes.mutations({
|
|||
},
|
||||
});
|
||||
|
||||
Swimlanes.archivedSwimlanes = () => {
|
||||
return Swimlanes.find({ archived: true });
|
||||
};
|
||||
|
||||
Swimlanes.archivedSwimlaneIds = () => {
|
||||
return Swimlanes.archivedSwimlanes().map(swim => {
|
||||
return swim._id;
|
||||
});
|
||||
};
|
||||
|
||||
Swimlanes.hookOptions.after.update = { fetchPrevious: false };
|
||||
|
||||
if (Meteor.isServer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue