able to run server without in docker

This commit is contained in:
wancat committed 2024-02-05 12:41:07 +08:00
1 parent 19cd66475c
commit ec4e97a7d6
4 files changed
+4 -8

No files matched your search

-2
View File
@@ -41,7 +41,6 @@ async function loadGlobalExceptions() {
export async function loadAndUpdateQuests() {
await Quest.deleteMany({})
const { exceptions } = await loadGlobalExceptions()
console.log(exceptions)
return mapQuests(async (id, questPath) => {
const files = await fs.readdir(questPath)
if (!files.includes('game.yml')) {
@@ -64,7 +63,6 @@ export async function loadAndUpdateQuests() {
quest.exceptions.push(...exceptions)
await quest.save()
} catch (error) {
console.error(error)
logger.error(`Error parsing quest`, { id, error })
throw new QuestValidationError(`Error parsing quest`, id, error)
}