Skip to content

Commit

Permalink
Merge pull request #4831 from laurenskling/patch-3
Browse files Browse the repository at this point in the history
Add _req_user to removed item so you can use this in the remove pre/p…
  • Loading branch information
JedWatson authored Apr 5, 2019
2 parents 4c81c85 + 82a66d5 commit 7cfc752
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin/server/api/list/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = function (req, res) {
return res.apiError('database error', err);
}
async.forEachLimit(results, 10, function (item, next) {
item._req_user = req.user;
item.remove(function (err) {
if (err) return next(err);
deletedCount++;
Expand Down

0 comments on commit 7cfc752

Please sign in to comment.