Added List and Menu clean up.

This commit is contained in:
Brian McGonagill 2024-07-30 16:32:06 -05:00
parent 2f3f82477a
commit e60c32894c
7 changed files with 211 additions and 9 deletions

View file

@ -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 });
},
});