mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: no callback found error
This commit is contained in:
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()
|
||||
|
||||
Reference in new issue
Block a user