From 449ff4bd603e64744fc24824ca021cb9bfcb1d91 Mon Sep 17 00:00:00 2001 From: IrosTheBeggar Date: Fri, 8 Jan 2021 00:50:49 -0500 Subject: [PATCH] forgot to ranme var --- src/util/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/admin.js b/src/util/admin.js index 7e644be..568f1ce 100644 --- a/src/util/admin.js +++ b/src/util/admin.js @@ -70,7 +70,7 @@ exports.addUser = async (username, password, admin, guest, vpaths) => { // This extra step is so we can handle the process like a SQL transaction // The new var is a copy so the original program isn't touched // Once the file save is complete, the new user will be added - const memClone = JSON.parse(JSON.stringify(program.users)); + const memClone = JSON.parse(JSON.stringify(config.program.users)); memClone[username] = newUser; const loadConfig = await this.loadFile(config.configFile);