pass flagId into flag.update hook

This commit is contained in:
Julian Lam
2017-01-12 10:09:47 -05:00
parent 6c04e393b5
commit bef3da5b48

View File

@@ -475,7 +475,7 @@ Flags.update = function (flagId, uid, changeset, callback) {
tasks.push(async.apply(Flags.appendHistory, flagId, uid, changeset));
// Fire plugin hook
tasks.push(async.apply(plugins.fireHook, 'action:flag.update', { changeset: changeset, uid: uid }));
tasks.push(async.apply(plugins.fireHook, 'action:flag.update', { flagId: flagId, changeset: changeset, uid: uid }));
async.parallel(tasks, function (err, data) {
return next(err);