diff --git a/quests/create/game.yml b/quests/create/game.yml index f4a7260..a79bc7d 100644 --- a/quests/create/game.yml +++ b/quests/create/game.yml @@ -1,3 +1,2 @@ -title: Read the File +title: 建立檔案與資料夾 instruction: | - 閱讀檔案 diff --git a/quests/meta.yml b/quests/meta.yml index b3635ef..3a33b62 100644 --- a/quests/meta.yml +++ b/quests/meta.yml @@ -3,8 +3,8 @@ quests: - cast - discover - read - - create - transport + - create - copy - move - remove diff --git a/server/src/api/controllers/sessionController.js b/server/src/api/controllers/sessionController.js index 05188fb..f21b6e0 100644 --- a/server/src/api/controllers/sessionController.js +++ b/server/src/api/controllers/sessionController.js @@ -6,6 +6,7 @@ import { isQuestUnlocked, } from '../../models/sessionManager.js' import { asyncHandler } from '../../middleware/error.js' +import config from '../../config.js' function sessionSummary(session) { return { @@ -65,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)) { + if ((await isQuestUnlocked(req.user, questId)) || config.testing.enable) { const session = await getOrCreateActiveSession(req.user, questId) res.json(sessionDetail(session)) } else {