fix(webui): invoke giveKeyChainStageTriggered for new stage (#2830)
Some checks failed
Build / build (push) Has been cancelled
Build Docker image / docker-arm64 (push) Has been cancelled
Build Docker image / docker-amd64 (push) Has been cancelled

Previously, this caused the old stage to just be reinitiated so we never went backwards.

Closes #2829

Reviewed-on: #2830
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-09-29 23:59:35 -07:00 committed by Sainan
parent a8e41c95e7
commit c6a3e86d2b

View File

@ -115,7 +115,7 @@ export const manageQuestsController: RequestHandler = async (req, res) => {
if (stage > 0) {
await giveKeyChainStageTriggered(inventory, {
KeyChain: questKey.ItemType,
ChainStage: stage
ChainStage: stage - 1
});
}
}