mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: use wrong parsed command body
This commit is contained in:
1 parent
128aae33ec
commit
aeed963a75
2 files changed
+3
-3
No files matched your search
@@ -76,6 +76,6 @@ main()
|
|||||||
console.log(
|
console.log(
|
||||||
'發生預期外的錯誤,請嘗試重新啟動 Quest,如果問題持續發生,請幫我們填寫右上角的錯誤回報表單。'
|
'發生預期外的錯誤,請嘗試重新啟動 Quest,如果問題持續發生,請幫我們填寫右上角的錯誤回報表單。'
|
||||||
)
|
)
|
||||||
console.error(err)
|
console.log(err.response.data)
|
||||||
exit(1)
|
exit(1)
|
||||||
})
|
})
|
||||||
@@ -45,10 +45,10 @@ export const newCommand = asyncHandler(async (req: Request, res: Response) => {
|
|||||||
new CLIFileExistenceChecker(session.containerId!)
|
new CLIFileExistenceChecker(session.containerId!)
|
||||||
)
|
)
|
||||||
|
|
||||||
const event = await gameSession.runCommand(body)
|
const event = await gameSession.runCommand(command)
|
||||||
|
|
||||||
const c = new Command({
|
const c = new Command({
|
||||||
...body,
|
...command,
|
||||||
session: sessionId,
|
session: sessionId,
|
||||||
stage: event,
|
stage: event,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user