@punks/backend-entity-manager 0.0.267 → 0.0.268

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -22411,7 +22411,9 @@ let UserRegistrationHandler = class UserRegistrationHandler {
22411
22411
  passwordHash,
22412
22412
  passwordUpdateTimestamp: new Date(),
22413
22413
  });
22414
- await this.sendRegistrationEmail(user, input.callback, input.languageCode);
22414
+ if (input.callback) {
22415
+ await this.sendRegistrationEmail(user, input.callback, input.languageCode);
22416
+ }
22415
22417
  this.logger.debug(`User already exists but not verified. Sending new verification email: ${input.email} - ${input.userName}`, { user });
22416
22418
  return {
22417
22419
  success: true,
@@ -22424,7 +22426,9 @@ let UserRegistrationHandler = class UserRegistrationHandler {
22424
22426
  passwordHash,
22425
22427
  passwordUpdateTimestamp: new Date(),
22426
22428
  });
22427
- await this.sendRegistrationEmail(newUser, input.callback, input.languageCode);
22429
+ if (input.callback) {
22430
+ await this.sendRegistrationEmail(newUser, input.callback, input.languageCode);
22431
+ }
22428
22432
  this.logger.debug(`New user created: ${input.email} - ${input.userName}`, {
22429
22433
  user: newUser,
22430
22434
  });