From fe186a75f5def1e372946ce1fb4439c5c69d800b Mon Sep 17 00:00:00 2001 From: Clearsu Date: Wed, 22 Nov 2023 20:13:15 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20TournamentInfo=20=EB=82=A0=EC=A7=9C=20?= =?UTF-8?q?=ED=83=80=EC=9E=85=20=EC=88=98=EC=A0=95=20#1104?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/api/pingpong/tournament/dummyTournamentData.ts | 8 ++++---- types/tournamentTypes.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/api/pingpong/tournament/dummyTournamentData.ts b/pages/api/pingpong/tournament/dummyTournamentData.ts index 91016f87b..e96a4443b 100644 --- a/pages/api/pingpong/tournament/dummyTournamentData.ts +++ b/pages/api/pingpong/tournament/dummyTournamentData.ts @@ -36,8 +36,8 @@ for (let i = 28; i >= 1; i--) { tournamentId: i * 2, title: `${i}회 루키 토너먼트`, contents: '블라블라', - startTime: new Date(), - endTime: new Date(), + startTime: new Date().toString(), + endTime: new Date().toString(), status: status, type: 'ROOKIE', winnerIntraId: users[i % 3].intraId, @@ -49,8 +49,8 @@ for (let i = 28; i >= 1; i--) { tournamentId: i * 2 - 1, title: `${i}회 마스터 토너먼트`, contents: '블라블라', - startTime: new Date(), - endTime: new Date(), + startTime: new Date().toString(), + endTime: new Date().toString(), status: status, type: 'MASTER', winnerIntraId: users[i % 3].intraId, diff --git a/types/tournamentTypes.ts b/types/tournamentTypes.ts index 646301d46..8a0757775 100644 --- a/types/tournamentTypes.ts +++ b/types/tournamentTypes.ts @@ -6,8 +6,8 @@ export interface TournamentInfo { type: 'CUSTOM' | 'MASTER' | 'ROOKIE'; winnerIntraId: string; winnerImageUrl: string; - startTime: Date; - endTime: Date; + startTime: string; + endTime: string; player_cnt: number; }