added return value to remove old soft removed docs

This commit is contained in:
Stefan Zermatten
2017-05-29 11:58:19 +02:00
parent 7bc80da99e
commit a68999f4e5

View File

@@ -38,7 +38,7 @@ Meteor.startup(() => {
deleteOldSoftRemovedDocs() {
const user = Meteor.users.findOne(this.userId);
if (user && _.contains(user.roles, "admin")){
deleteOldSoftRemovedDocs();
return deleteOldSoftRemovedDocs();
}
},
});