Skip to content

Commit

Permalink
Fix: tableName 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
minchodang committed May 19, 2024
1 parent 07c89ce commit 279b94b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/auth/auth.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/test/test.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any> {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/user/user.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<UserInfo | null> {
Expand Down

0 comments on commit 279b94b

Please sign in to comment.