mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 17:41:43 -05:00
export callbacks, wrote failing test
This commit is contained in:
parent
db3f6f95f3
commit
c83c27a320
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@
|
|||
// }
|
||||
// addCallback("users.new.sync", usersNewAdminUserCreationNotification);
|
||||
|
||||
function usersMakeAdmin (user) {
|
||||
export function usersMakeAdmin (user) {
|
||||
// if this is not a dummy account, and is the first user ever, make them an admin
|
||||
// TODO: should use await Connectors.count() instead, but cannot await inside Accounts.onCreateUser. Fix later.
|
||||
const realUsersCount = Users.find({'isDummy': {$ne: true}}).count();
|
||||
|
|
Loading…
Add table
Reference in a new issue