From b9fdbc8d6127e9b365001891c0cbbd1b58418517 Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 21 May 2021 18:24:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B4=BB=E5=8A=A8=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E8=BF=87=E6=9C=9F=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/controllers/puzzle.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/controllers/puzzle.controller.ts b/src/api/controllers/puzzle.controller.ts index 582403b..2a2464f 100644 --- a/src/api/controllers/puzzle.controller.ts +++ b/src/api/controllers/puzzle.controller.ts @@ -244,8 +244,8 @@ class PuzzleController extends BaseController { } new RoomState().lock(shop) let history = await PuzzleSession.findOne({ shop, status: {$in: [0, 1]}, type: 1, activityId: aid }) - if (history) { - // if (history && !history.hasExpired()) { + // if (history) { + if (history && !history.hasExpired()) { beginTime = history.begin sessionMatch = history.id if (!history.members.has(accountid)) {