test
This commit is contained in:
@@ -10,7 +10,7 @@ import { LoggerService } from '@/core/LoggerService.js';
|
||||
|
||||
@Injectable()
|
||||
export class EmailService {
|
||||
#logger: Logger;
|
||||
private logger: Logger;
|
||||
|
||||
constructor(
|
||||
@Inject(DI.config)
|
||||
@@ -22,7 +22,7 @@ export class EmailService {
|
||||
private metaService: MetaService,
|
||||
private loggerService: LoggerService,
|
||||
) {
|
||||
this.#logger = this.loggerService.getLogger('email');
|
||||
this.logger = this.loggerService.getLogger('email');
|
||||
}
|
||||
|
||||
public async sendEmail(to: string, subject: string, html: string, text: string) {
|
||||
@@ -134,9 +134,9 @@ export class EmailService {
|
||||
</html>`,
|
||||
});
|
||||
|
||||
this.#logger.info(`Message sent: ${info.messageId}`);
|
||||
this.logger.info(`Message sent: ${info.messageId}`);
|
||||
} catch (err) {
|
||||
this.#logger.error(err as Error);
|
||||
this.logger.error(err as Error);
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user