Resolved bug updating the config

This commit is contained in:
Logan Cusano
2023-05-06 17:14:30 -04:00
parent a14c56b645
commit 6880c5952a
2 changed files with 10 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ exports.updateId = (updatedId) => {
exports.updateConfig = function updateConfig(key, value) {
const options = new Options(key, value);
this.updateConfigFile(options, (updatedFiles) => {
updateConfigFile(options, (updatedFiles) => {
// Do Something
log.DEBUG("Updated config file: ", updatedFiles);
})
@@ -43,7 +43,7 @@ exports.updateConfig = function updateConfig(key, value) {
* @param options An instance of the Objects class specified to the key being updated
* @param callback Callback when the files have been modified
*/
exports.updateConfigFile = function updateConfigFile(options, callback){
function updateConfigFile(options, callback){
replace(options, (error, changedFiles) => {
if (error) return console.error('Error occurred:', error);
log.DEBUG('Modified files:', changedFiles);