fix: no callback found error

This commit is contained in:
Lin, Hung-Shin committed 2023-11-23 23:00:16 +08:00
1 parent c6f45e10e0
commit d07b38c7d6
2 files changed
+34 -30

No files matched your search

@@ -72,7 +72,7 @@ export const completedCommand = asyncHandler(async (req, res) => {
const callback = commandCompleteCallbacks.get(session.id)
if (!callback) {
res.status(400).json({ message: 'no callback found' })
res.status(200).json({ message: 'no callback found' })
return
}
callback()