fix it correctly

This commit is contained in:
jjanzen 2025-01-16 23:49:34 -06:00
parent ae976a0caa
commit 7f600c39ca

3
app.js
View file

@ -52,8 +52,7 @@ function handle_application_command(state, data, channel_id) {
default: default:
console.error(`unknown command: ${name}`); console.error(`unknown command: ${name}`);
if (res) return res.status(400).json({ error: "unknown command" }); return state.res.status(400).json({ error: "unknown command" });
else return null;
} }
} }