From 47de2130e24cf3ec9e7b295a630eb2155016f6d0 Mon Sep 17 00:00:00 2001 From: Vedal Date: Sat, 15 Jun 2024 03:39:54 +0100 Subject: [PATCH] Fix webhook response --- ebs/src/modules/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ebs/src/modules/config.ts b/ebs/src/modules/config.ts index 1e184a8..439d9d8 100644 --- a/ebs/src/modules/config.ts +++ b/ebs/src/modules/config.ts @@ -105,9 +105,9 @@ app.post("/webhook/refresh", asyncCatch(async (req, res) => { console.log("Refreshed config, new config version is ", activeConfig!.version); await broadcastConfigRefresh(activeConfig!); - res.sendStatus(200).send("Config refreshed."); + res.status(200).send("Config refreshed."); } else { - res.sendStatus(200).send("Config not refreshed."); + res.status(200).send("Config not refreshed."); } }));