mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: stage re-execute
This commit is contained in:
1 parent
d4446186cd
commit
c7d18ad95e
2 files changed
+7
-2
No files matched your search
@@ -122,7 +122,7 @@ export default class CommandHandler extends SessionHandler {
|
||||
async run() {
|
||||
try {
|
||||
this.quest = await Quest.findById(this.session.quest)
|
||||
const stages = this.getUnlockedComponents(this.quest.stages)
|
||||
const stages = this.getStages()
|
||||
if (stages.length === 0) {
|
||||
logger.warn('stage not found', { session: this.session.id })
|
||||
return {}
|
||||
|
||||
Reference in new issue
Block a user