Skip to content

Commit

Permalink
fix(infra): change load user to upper character
Browse files Browse the repository at this point in the history
  • Loading branch information
donghun1214 committed Aug 31, 2024
1 parent 8a26269 commit 2030863
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/backend/apps/client/src/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class UserService {

async sendPinForRegisterNewEmail({ email }: UserEmailDto): Promise<string> {
// 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)
}
Expand Down Expand Up @@ -114,7 +114,7 @@ export class UserService {

async createPinAndSendEmail(email: string): Promise<string> {
// 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'
}
Expand Down Expand Up @@ -217,7 +217,7 @@ export class UserService {
email
}: EmailAuthenticationPinDto): Promise<string> {
// 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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 2030863

Please sign in to comment.