diff options
author | jjanzen <jjanzen@jjanzen.ca> | 2025-01-16 23:49:34 -0600 |
---|---|---|
committer | jjanzen <jjanzen@jjanzen.ca> | 2025-01-16 23:49:34 -0600 |
commit | 7f600c39ca945ba0264deb7a68b905e6e0e12327 (patch) | |
tree | cb9dd0643d0ec16f021a10d9a6517294bf9caeab | |
parent | ae976a0caa71c692ecc9bbbfe2610419580cad1e (diff) |
fix it correctly
-rw-r--r-- | app.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -52,8 +52,7 @@ function handle_application_command(state, data, channel_id) { default: console.error(`unknown command: ${name}`); - if (res) return res.status(400).json({ error: "unknown command" }); - else return null; + return state.res.status(400).json({ error: "unknown command" }); } } |