mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
fix: disable quest lock when testing
This commit is contained in:
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) => {
|
export const getOrCreateSession = asyncHandler(async (req, res) => {
|
||||||
const { questId } = matchedData(req)
|
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)
|
const session = await getOrCreateActiveSession(req.user, questId)
|
||||||
res.json(sessionDetail(session))
|
res.json(sessionDetail(session))
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user