Skip to content

Commit

Permalink
fix: afterUserCreated callback not being triggered by users.create API
Browse files Browse the repository at this point in the history
  • Loading branch information
murtaza98 committed Sep 6, 2023
1 parent 3245a0a commit 12ad6e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/meteor/app/lib/server/functions/saveUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ const saveNewUser = async function (userData, sendPassword) {
}
}

const user = await Users.findOneById(_id);
setImmediate(async () => callbacks.run('afterCreateUser', user));

return _id;
};

Expand Down

0 comments on commit 12ad6e7

Please sign in to comment.