mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: load quest erorr handling
This commit is contained in:
1 parent
92b12a90d3
commit
c9a24b92ad
1 file changed
+2
-2
@@ -38,7 +38,7 @@ export function loadAndUpdateQuests() {
|
||||
|
||||
const image = files.includes('Dockerfile') ? id : 'base'
|
||||
|
||||
return Quest.findByIdAndUpdate(
|
||||
return await Quest.findByIdAndUpdate(
|
||||
id,
|
||||
{
|
||||
_id: id,
|
||||
@@ -50,7 +50,7 @@ export function loadAndUpdateQuests() {
|
||||
}
|
||||
)
|
||||
} catch (error) {
|
||||
console.error(`Error parsing quest ${id}:`, error)
|
||||
console.error(`Error parsing quest ${id}:`, error.message)
|
||||
throw error
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user