修正一个由于修改数据结构导致的多人模式报错的bug
This commit is contained in:
parent
784141e99e
commit
8cf133b200
@ -80,7 +80,7 @@ export async function startGame(roomId: string, sessionId: string) {
|
|||||||
export async function sendOneQuestion(history: any) {
|
export async function sendOneQuestion(history: any) {
|
||||||
const roomId = history.room
|
const roomId = history.room
|
||||||
new Schedule().stopSchedule(history.scheduleKey)
|
new Schedule().stopSchedule(history.scheduleKey)
|
||||||
if (history.current >= history.questions.length) {
|
if (history.current >= history.questions.size) {
|
||||||
console.log('match over')
|
console.log('match over')
|
||||||
history.status = 9
|
history.status = 9
|
||||||
await history.save()
|
await history.save()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user