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