Просмотр исходного кода

fix(email-plugin): Correctly initialize email processor

Michael Bromley 4 лет назад
Родитель
Сommit
819e480d2d
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      packages/email-plugin/src/plugin.ts

+ 1 - 0
packages/email-plugin/src/plugin.ts

@@ -197,6 +197,7 @@ export class EmailPlugin implements OnApplicationBootstrap, NestModule {
             this.testingProcessor = new EmailProcessor(options);
             await this.testingProcessor.init();
         } else {
+            await this.emailProcessor.init();
             this.jobQueue = await this.jobQueueService.createQueue({
                 name: 'send-email',
                 process: job => {