mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
forgot to ranme var
This commit is contained in:
parent
433a308d67
commit
449ff4bd60
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user