pass flagId into flag.update hook

v1.18.x
Julian Lam 8 years ago
parent 6c04e393b5
commit bef3da5b48

@ -475,7 +475,7 @@ Flags.update = function (flagId, uid, changeset, callback) {
tasks.push(async.apply(Flags.appendHistory, flagId, uid, changeset)); tasks.push(async.apply(Flags.appendHistory, flagId, uid, changeset));
// Fire plugin hook // 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) { async.parallel(tasks, function (err, data) {
return next(err); return next(err);

Loading…
Cancel
Save