mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: mark progress to stage.next directly
This commit is contained in:
1 parent
a73aa8b461
commit
5cad3ecc12
1 file changed
+1
-2
@@ -26,8 +26,7 @@ const commandHandler = async (session, commandInput) => {
|
||||
session.completion.push(session.progress)
|
||||
session.hints.push(...stage.hints)
|
||||
|
||||
const nextStage = quest.stages.find((s) => s.id === stage.next)
|
||||
session.progress = nextStage.id
|
||||
session.progress = stage.next
|
||||
await session.save()
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user