From 279b94bfecb15b91e4a9786d3697fb3f9b37ab1d Mon Sep 17 00:00:00 2001 From: minchodang Date: Sun, 19 May 2024 20:38:22 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20tableName=20=EC=83=81=EC=88=98=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/auth/auth.repository.ts | 2 +- src/modules/test/test.repository.ts | 2 +- src/modules/user/user.repository.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/auth/auth.repository.ts b/src/modules/auth/auth.repository.ts index d4f2996..f8ee679 100644 --- a/src/modules/auth/auth.repository.ts +++ b/src/modules/auth/auth.repository.ts @@ -10,7 +10,7 @@ export class AuthRepository { private emailVerificationTableName: string; constructor(@Inject('DYNAMODB') private dynamoDb: DynamoDBDocument) { - this.tableName = process.env.AWS_DYNAMODB_TABLE_NAME; + this.tableName = 'Dev-Metacognition-Test'; this.emailVerificationTableName = process.env.AWS_DYNAMODB_EMAIL_VERIFICATION_TABLE_NAME; } diff --git a/src/modules/test/test.repository.ts b/src/modules/test/test.repository.ts index aabfeb7..394ee51 100644 --- a/src/modules/test/test.repository.ts +++ b/src/modules/test/test.repository.ts @@ -8,7 +8,7 @@ import { DatabaseError } from 'src/core/errors/database-error'; export class TestRepository { private tableName: string; constructor(@Inject('DYNAMODB') private dynamoDb: DynamoDBDocument) { - this.tableName = process.env.AWS_DYNAMODB_TABLE_NAME; + this.tableName = 'Dev-Metacognition-Test'; } async createTest(data: any): Promise { diff --git a/src/modules/user/user.repository.ts b/src/modules/user/user.repository.ts index 30746fe..11a6e12 100644 --- a/src/modules/user/user.repository.ts +++ b/src/modules/user/user.repository.ts @@ -24,7 +24,7 @@ interface UserTest { export class UserRepository { private tableName: string; constructor(@Inject('DYNAMODB') private dynamoDb) { - this.tableName = process.env.AWS_DYNAMODB_TABLE_NAME; + this.tableName = 'Dev-Metacognition-Test'; } async findOneById(id: string): Promise {