diff --git a/src/external/where42/where42.controller.ts b/src/external/where42/where42.controller.ts index d63c7bf..537c2cd 100644 --- a/src/external/where42/where42.controller.ts +++ b/src/external/where42/where42.controller.ts @@ -64,10 +64,4 @@ export class Where42Controller { this.logger.debug(`@where42All) where42All`); return this.where42Service.where42All(logins); } - - @Post('where42All2') - async where42All2(@Body() logins: string[]): Promise { - this.logger.debug(`@where42All) where42All`); - return this.where42Service.where42All2(logins); - } } diff --git a/src/external/where42/where42.service.ts b/src/external/where42/where42.service.ts index 7e1a27e..a4f74fc 100644 --- a/src/external/where42/where42.service.ts +++ b/src/external/where42/where42.service.ts @@ -59,23 +59,6 @@ export class Where42Service { @Post('where42All') async where42All(@Body() logins: string[]): Promise { - const res = []; - for (const login of logins) { - try { - res.push(await this.where42(login)); - } catch (e) { - this.logger.error('정상적인 조회가 아님'); - res.push({ - login, - inoutState: null, - }); - } - } - return res; - } - - @Post('where42All2') - async where42All2(@Body() logins: string[]): Promise { const res: Where42ResponseDto[] = []; const users = await this.userService.findUsersByLogins(logins);