From 2f22a902835d17f0368481b2516164376a92399f Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 7 May 2021 17:38:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=B9=E9=85=8D=E6=97=B6,=20=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E5=88=A4=E6=96=AD=E6=88=BF=E9=97=B4=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=B7=B2=E7=BB=8F=E8=BF=87=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/controllers/puzzle.controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/controllers/puzzle.controller.ts b/src/api/controllers/puzzle.controller.ts index d424e2d..a8f8e1a 100644 --- a/src/api/controllers/puzzle.controller.ts +++ b/src/api/controllers/puzzle.controller.ts @@ -155,7 +155,8 @@ class PuzzleController extends BaseController { } new RoomState().lock(shop) let history = await PuzzleSession.findOne({ shop, status: {$in: [0, 1]}, type: 1 }) - if (history && !history.hasExpired()) { + if (history) { + // if (history && !history.hasExpired()) { beginTime = history.begin sessionMatch = history.id if (!history.members.has(accountid)) {