From ba9e879af8c504f4166a5096dbf33eb93d803b96 Mon Sep 17 00:00:00 2001 From: alexeh Date: Mon, 14 Oct 2024 11:53:59 +0200 Subject: [PATCH] rename AWS_SES_REGION to AWS_REGION --- .github/workflows/deploy.yml | 2 +- api/src/modules/config/app-config.module.ts | 2 -- api/src/modules/config/app-config.service.ts | 2 +- shared/config/.env.test | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8afdc5e0..28c9a168 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_REGION }} + AWS_REGION=${{ secrets.AWS_REGION }} context: . cache-from: type=gha cache-to: type=gha,mode=max diff --git a/api/src/modules/config/app-config.module.ts b/api/src/modules/config/app-config.module.ts index 0fdec226..de6c3806 100644 --- a/api/src/modules/config/app-config.module.ts +++ b/api/src/modules/config/app-config.module.ts @@ -5,8 +5,6 @@ import { DatabaseModule } from '@api/modules/config/database/database.module'; import { resolveConfigPath } from '@api/modules/config/path-resolver'; import { JwtConfigHandler } from '@api/modules/config/auth-config.handler'; -const DEFAULT_RELATIVE_PATH = '../../../../../../'; - @Global() @Module({ imports: [ diff --git a/api/src/modules/config/app-config.service.ts b/api/src/modules/config/app-config.service.ts index bcd79018..6e8112fb 100644 --- a/api/src/modules/config/app-config.service.ts +++ b/api/src/modules/config/app-config.service.ts @@ -58,7 +58,7 @@ export class ApiConfigService { secretAccessKey: this.configService.getOrThrow( 'AWS_SES_ACCESS_KEY_SECRET', ), - region: this.configService.getOrThrow('AWS_SES_REGION'), + region: this.configService.getOrThrow('AWS_REGION'), domain: this.configService.getOrThrow('AWS_SES_DOMAIN'), }; } diff --git a/shared/config/.env.test b/shared/config/.env.test index 84edc704..469361ec 100644 --- a/shared/config/.env.test +++ b/shared/config/.env.test @@ -24,4 +24,4 @@ EMAIL_CONFIRMATION_TOKEN_EXPIRES_IN=2h AWS_SES_ACCESS_KEY_ID=test AWS_SES_ACCESS_KEY_SECRET=test AWS_SES_DOMAIN=test -AWS_SES_REGION=test \ No newline at end of file +AWS_REGION=test \ No newline at end of file