correctly check query

This commit is contained in:
MathMan05 2025-11-19 09:07:57 -06:00
parent ced0421ee9
commit 8bdc577f6f

View File

@ -34,7 +34,7 @@ export const executeWebhook = async (req: Request, res: Response) => {
throw DiscordApiErrors.CANNOT_SEND_EMPTY_MESSAGE;
}
const { wait } = req.query;
const wait = req.query.wait === "true";
if (!wait) {
res.status(204).send();