Removed Async to fix last error
Hopefully this should work now.
This commit is contained in:
parent
d35172aac6
commit
31469424f1
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user