Skip to content

Commit

Permalink
cleaning and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Sep 22, 2024
1 parent a2b3ed8 commit 33baa69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -54,11 +53,10 @@ export class NodemailerEmailService implements IEmailServiceInterface {
private getMailConfig() {
const accessKeyId = this.configService.get<string>('AWS_SES_ACCESS_KEY_ID');
const secretAccessKey = this.configService.get<string>(
'AWS_SES_SECRET_ACCESS_KEY',
'AWS_SES_ACCESS_KEY_SECRET',
);
const region = this.configService.get<string>('AWS_SES_REGION');
const domain = this.configService.get<string>('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',
Expand Down

0 comments on commit 33baa69

Please sign in to comment.