Fixed users failing to create because of a bad hook

This commit is contained in:
Stefan Zermatten
2023-06-23 09:55:48 +02:00
parent 81cfc3919e
commit 33576e02fa

View File

@@ -252,7 +252,7 @@ Meteor.users.setPreference = new ValidatedMethod({
});
if (Meteor.isServer) {
Accounts.onCreateUser(() => {
Accounts.onCreateUser((options, user) => {
if (defaultLibraries?.length) {
Libraries.update({
_id: { $in: defaultLibraries }
@@ -271,6 +271,7 @@ if (Meteor.isServer) {
multi: true,
}, () => {/**/ });
}
return user;
});
}