From 2030863cd40074f9f9d99a8ac46729dbe80d50d2 Mon Sep 17 00:00:00 2001 From: donghun1214 Date: Thu, 29 Aug 2024 15:26:07 +0000 Subject: [PATCH] fix(infra): change load user to upper character --- apps/backend/apps/client/src/user/user.service.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/backend/apps/client/src/user/user.service.ts b/apps/backend/apps/client/src/user/user.service.ts index c9b8f052ee..92faeddd32 100644 --- a/apps/backend/apps/client/src/user/user.service.ts +++ b/apps/backend/apps/client/src/user/user.service.ts @@ -81,7 +81,7 @@ export class UserService { async sendPinForRegisterNewEmail({ email }: UserEmailDto): Promise { // TODO: load test를 위함, 테스트 후 삭제 예정 - if (email === this.config.get('email_for_load_test')) { + if (email === this.config.get('EMAIL_FOR_LOAD_TEST')) { this.logger.debug('load test - sendPinForRegisterNewEmail') return this.createPinAndSendEmail(email) } @@ -114,7 +114,7 @@ export class UserService { async createPinAndSendEmail(email: string): Promise { // TODO: load test를 위함, 테스트 후 삭제 예정 - if (email === this.config.get('email_for_load_test')) { + if (email === this.config.get('EMAIL_FOR_LOAD_TEST')) { this.logger.debug('load test - createPinAndSendEmail') return 'You entered an email for testing' } @@ -217,7 +217,7 @@ export class UserService { email }: EmailAuthenticationPinDto): Promise { // TODO: load test를 위함, 테스트 후 삭제 예정 - if (pin === this.config.get('pin_for_load_test')) { + if (pin === this.config.get('PIN_FOR_LOAD_TEST')) { this.logger.debug('load test - verifyPinAndIssueJwt') const payload: EmailAuthJwtPayload = { email } const token = await this.createJwt(payload) @@ -320,8 +320,8 @@ export class UserService { async signUp(req: Request, signUpDto: SignUpDto) { // TODO: load test를 위함, 테스트 후 삭제 예정 if ( - signUpDto.email === this.config.get('email_for_load_test') || - signUpDto.username === this.config.get('username_for_load_test') + signUpDto.email === this.config.get('EMAIL_FOR_LOAD_TEST') || + signUpDto.username === this.config.get('USERNAME_FOR_LOAD_TEST') ) { this.logger.debug('load test - sign up') return await this.signUpForLoadTest(signUpDto) @@ -615,7 +615,7 @@ export class UserService { async checkDuplicatedUsername(usernameDto: UsernameDto) { // TODO: load test를 위함, 테스트 후 삭제 예정 - if (usernameDto.username === this.config.get('username_for_load_test')) { + if (usernameDto.username === this.config.get('USERNAME_FOR_LOAD_TEST')) { this.logger.debug('load test - checkDuplicatedUsername') return }