From 31469424f1edc39a4cd5793f751750b682fe0378 Mon Sep 17 00:00:00 2001 From: Vampire Kitten Date: Fri, 14 Jun 2024 02:03:08 +0200 Subject: [PATCH] Removed Async to fix last error Hopefully this should work now. --- src/controllers/custom/updateConfigData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/custom/updateConfigData.ts b/src/controllers/custom/updateConfigData.ts index de7129fa..8c650f76 100644 --- a/src/controllers/custom/updateConfigData.ts +++ b/src/controllers/custom/updateConfigData.ts @@ -3,7 +3,7 @@ import path from "path"; import fs from "fs"; const rootDir = path.join(__dirname, "../../.."); -const updateConfigData: RequestHandler = async (req) => { +const updateConfigData: RequestHandler = (req) => { const updateSettingsData = req.body; fs.writeFile(path.join(rootDir, "config.json"), updateSettingsData, function(err:any) {