diff --git a/api/src/user/services/passwordReset.service.ts b/api/src/user/services/passwordReset.service.ts index 8c5d7991..2a9a7742 100644 --- a/api/src/user/services/passwordReset.service.ts +++ b/api/src/user/services/passwordReset.service.ts @@ -36,7 +36,7 @@ export class PasswordResetService { private readonly userService: UserService, public readonly i18n: I18nService, public readonly languageService: LanguageService, - @Optional() private readonly mailerService: MailerService, + @Optional() private readonly mailerService?: MailerService, ) {} public readonly jwtSignOptions: JwtSignOptions = {