fix: disable quest lock when testing

This commit is contained in:
Lin, Hung-Shin committed 2023-11-21 11:14:02 +08:00
1 parent 3fed851b7b
commit c89abfbac5
1 file changed
+1 -1
@@ -66,7 +66,7 @@ export const getSessionById = asyncHandler(async (req, res) => {
export const getOrCreateSession = asyncHandler(async (req, res) => {
const { questId } = matchedData(req)
if ((await isQuestUnlocked(req.user, questId)) || config.testing.enable) {
if ((await isQuestUnlocked(req.user, questId)) || config.testing.enabled) {
const session = await getOrCreateActiveSession(req.user, questId)
res.json(sessionDetail(session))
} else {