Skip to content

Commit

Permalink
delete: 속도 비교 후 느린 버전 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
niamu01 committed Jul 3, 2024
1 parent e1cf923 commit cd09465
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
6 changes: 0 additions & 6 deletions src/external/where42/where42.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Where42ResponseDto[]> {
this.logger.debug(`@where42All) where42All`);
return this.where42Service.where42All2(logins);
}
}
17 changes: 0 additions & 17 deletions src/external/where42/where42.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,6 @@ export class Where42Service {

@Post('where42All')
async where42All(@Body() logins: string[]): Promise<Where42ResponseDto[]> {
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<Where42ResponseDto[]> {
const res: Where42ResponseDto[] = [];

const users = await this.userService.findUsersByLogins(logins);
Expand Down

0 comments on commit cd09465

Please sign in to comment.