Skip to content

Commit

Permalink
feat: add uid of user who created flag to action:flags.create
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Mar 2, 2021
1 parent 7d391d4 commit 069ac60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ Flags.notify = async function (flagObj, uid) {

plugins.hooks.fire('action:flags.create', {
flag: flagObj,
uid: uid,
});
uids = uids.filter(_uid => parseInt(_uid, 10) !== parseInt(uid, 10));
await notifications.push(notifObj, uids);
Expand Down

0 comments on commit 069ac60

Please sign in to comment.