diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fcff1c1a..790bb6ff 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -140,7 +140,7 @@ jobs: AWS_SES_ACCESS_KEY_ID=${{ secrets.AWS_SES_ACCESS_KEY_ID }} AWS_SES_ACCESS_KEY_SECRET=${{ secrets.AWS_SES_ACCESS_KEY_SECRET }} AWS_SES_DOMAIN=${{ secrets.AWS_SES_DOMAIN }} - AWS_SES_REGION=${{ secrets.AWS_SES_REGION }} + AWS_SES_REGION=${{ secrets.AWS_REGION }} context: . cache-from: type=gha cache-to: type=gha,mode=max diff --git a/api/src/modules/notifications/email/nodemailer.email.service.ts b/api/src/modules/notifications/email/nodemailer.email.service.ts index da5b1c6e..912256fa 100644 --- a/api/src/modules/notifications/email/nodemailer.email.service.ts +++ b/api/src/modules/notifications/email/nodemailer.email.service.ts @@ -12,7 +12,6 @@ import { } from '@api/modules/notifications/email/email-service.interface'; import { ConfigService } from '@nestjs/config'; import { EventBus } from '@nestjs/cqrs'; -import { EmailFailedEventHandler } from '@api/modules/events/api-events/handlers/emai-failed-event.handler'; import { EmailFailedEvent } from '@api/modules/events/api-events/email-failed.event'; @Injectable() @@ -54,11 +53,10 @@ export class NodemailerEmailService implements IEmailServiceInterface { private getMailConfig() { const accessKeyId = this.configService.get('AWS_SES_ACCESS_KEY_ID'); const secretAccessKey = this.configService.get( - 'AWS_SES_SECRET_ACCESS_KEY', + 'AWS_SES_ACCESS_KEY_SECRET', ); const region = this.configService.get('AWS_SES_REGION'); const domain = this.configService.get('AWS_SES_DOMAIN'); - console.log(accessKeyId, secretAccessKey, region, domain); if (!accessKeyId || !secretAccessKey || !region || !domain) { this.logger.error( 'Variables for Email Service not set. Email not available',