mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Added List and Menu clean up.
This commit is contained in:
parent
2f3f82477a
commit
e60c32894c
7 changed files with 211 additions and 9 deletions
|
|
@ -65,5 +65,12 @@ Meteor.methods({
|
|||
completedOn: new Date()
|
||||
}
|
||||
});;
|
||||
}
|
||||
},
|
||||
'clean.Lists' () {
|
||||
if (!this.userId) {
|
||||
throw new Meteor.Error('You are not allowed to clean up old lists. Make sure you are logged in with valid user credentials.');
|
||||
}
|
||||
|
||||
return Lists.remove({ listComplete: true });
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue