匹配时, 不再判断房间是否已经过期

This commit is contained in:
zhl 2021-05-07 17:38:59 +08:00
parent c9557d6f7a
commit 2f22a90283

View File

@ -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)) {