From 33576e02fa422f1323e7db102953bc0596997d9d Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Fri, 23 Jun 2023 09:55:48 +0200 Subject: [PATCH] Fixed users failing to create because of a bad hook --- app/imports/api/users/Users.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/imports/api/users/Users.js b/app/imports/api/users/Users.js index dc9779e9..b27edfca 100644 --- a/app/imports/api/users/Users.js +++ b/app/imports/api/users/Users.js @@ -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; }); }