Merge branch 'main' into quest-file

This commit is contained in:
Lin, Hung-Shin committed 2023-11-22 11:39:24 +08:00
commit 21ca083628
46 files changed
+653 -220

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@ import path from 'path'
import yaml from 'yaml'
import { Quest } from '@linux-odyssey/models'
import logger from './logger.js'
const questDirectory = path.join(process.cwd(), '..', 'quests')
@@ -45,7 +46,7 @@ export async function loadAndUpdateQuests() {
})
await quest.save()
} catch (error) {
console.error(`Error parsing quest ${id}:`, error.message)
logger.error(`Error parsing quest ${id}:`, error)
throw error
}
})