mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
feat: parse all quest
This commit is contained in:
1 parent
ed4d04b658
commit
61d1871e95
9 files changed
+77
-18
No files matched your search
@@ -74,15 +74,15 @@ class QuestManager {
|
||||
|
||||
const image = files.includes('Dockerfile') ? id : 'base'
|
||||
const quest = questSchema.parse({
|
||||
_id: id,
|
||||
id,
|
||||
image,
|
||||
...questData,
|
||||
})
|
||||
quest.exceptions.push(...exceptions)
|
||||
this.quests.set(id, quest)
|
||||
} catch (error) {
|
||||
logger.error(`Error parsing quest`, { id, error })
|
||||
throw new QuestValidationError(`Error parsing quest`, id, error)
|
||||
logger.error(`Error parsing quest ${id}`, { error })
|
||||
throw new QuestValidationError(`Error parsing quest ${id}`, id, error)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user