-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ export class DashboardController { | |
|
||
@ApiOperation({ summary: '[백엔드 테스트용] redis 대회 참가, 수정, 대시보드 조회 테스트' }) | ||
@Get('all/:competitionId') | ||
async getDashboardTest(@Param('competitionId') competitionId: number = 5) { | ||
async dashboardTest(@Param('competitionId') competitionId: number = 5) { | ||
await this.dashboardService.registerUserAtCompetition(competitionId, '[email protected]'); | ||
await this.dashboardService.registerUserAtCompetition(competitionId, '[email protected]'); | ||
await this.dashboardService.updateUserSubmission( | ||
|
@@ -53,7 +53,13 @@ export class DashboardController { | |
RESULT.CORRECT, | ||
new Date(), | ||
); | ||
await this.dashboardService.getTop100DashboardRedis(5, '[email protected]'); | ||
await this.dashboardService.getTop100DashboardRedis(competitionId, '[email protected]'); | ||
} | ||
|
||
@ApiOperation({ summary: '[백엔드 테스트용] 대시보드 조회 테스트' }) | ||
@Get('test/:competitionId') | ||
async getDashboardTest(@Param('competitionId') competitionId: number = 5) { | ||
return await this.dashboardService.getTop100DashboardRedis(competitionId, '[email protected]'); | ||
} | ||
|
||
@ApiOperation({ summary: '대회 종료 이후 대시보드 조회' }) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters