mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
Merge branch 'main' into quest-file
This commit is contained in:
commit
21ca083628
46 files changed
+653
-220
No files matched your search
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user