Closed acomito closed 6 years ago
What would you return from this? Just returning the user is leaving out the options...
Accounts.onCreateUser(function (options, user) { Meteor.call('sendWelcomeEmail'); return user });
EDIT:
simple solution:
Accounts.onCreateUser(function (options, user) { Meteor.call('sendWelcomeEmail', user, options); return Object.assign({}, user, options); });
What would you return from this? Just returning the user is leaving out the options...
EDIT:
simple solution: