change log in modifyConfiguration function

plugin-touch-ups
Moe 2024-07-02 21:25:20 -07:00
parent a483ccf5e1
commit 5743c17099
1 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ module.exports = (config) => {
getConfiguration: () => {
return new Promise((resolve,reject) => {
const configPath = config.thisIsDocker ? "/config/conf.json" : s.location.config;
fs.readFile(configPath, 'utf8', (err, data) => {
resolve(JSON.parse(data))
});
@ -33,11 +33,11 @@ module.exports = (config) => {
},
modifyConfiguration: (postBody) => {
return new Promise((resolve, reject) => {
console.log(s.location.config)
console.log(config)
const configPath = config.thisIsDocker ? "/config/conf.json" : s.location.config;
const configData = JSON.stringify(postBody,null,3);
fs.writeFile(configPath, configData, resolve);
});
},