fix(webui): webui config change not committing change to memory #298
@ -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