Resolved bug updating the config
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user