diff --git a/src/services/GameLogic.ts b/src/services/GameLogic.ts index 5fbbc60..44d2c65 100644 --- a/src/services/GameLogic.ts +++ b/src/services/GameLogic.ts @@ -80,7 +80,7 @@ export async function startGame(roomId: string, sessionId: string) { export async function sendOneQuestion(history: any) { const roomId = history.room new Schedule().stopSchedule(history.scheduleKey) - if (history.current >= history.questions.length) { + if (history.current >= history.questions.size) { console.log('match over') history.status = 9 await history.save()