forked from OpenWF/SpaceNinjaServer
fix(webui): webui config change not committing change to memory (#298)
This commit is contained in:
parent
e5451d5227
commit
e3103d4ab6
@ -46,5 +46,6 @@ interface ILoggerConfig {
|
|||||||
|
|
||||||
export const updateConfig = async (data: string) => {
|
export const updateConfig = async (data: string) => {
|
||||||
amnesia = true;
|
amnesia = true;
|
||||||
return await fsPromises.writeFile(configPath, data);
|
await fsPromises.writeFile(configPath, data);
|
||||||
|
Object.assign(config, JSON.parse(data));
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user