Skip to content

Commit

Permalink
added return value to remove old soft removed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaumRystra committed May 29, 2017
1 parent 7bc80da commit a59cf11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpg-docs/server/lib/cron/deleteRemovedDocuments.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Meteor.startup(() => {
deleteOldSoftRemovedDocs() {
const user = Meteor.users.findOne(this.userId);
if (user && _.contains(user.roles, "admin")){
deleteOldSoftRemovedDocs();
return deleteOldSoftRemovedDocs();
}
},
});
Expand Down

1 comment on commit a59cf11

@ThaumRystra
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closes #88

Please sign in to comment.