Fixed missing initialization of new variable.

This commit is contained in:
Josiah Baldwin 2021-11-15 12:06:14 -08:00
parent c50b3c0d26
commit d3f115b3a2

View File

@ -2006,7 +2006,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
if (group != null) { if (group != null) {
if (group.links == null) { group.links = {}; } if (group.links == null) { group.links = {}; }
var unknownUsers = [], addedCount = 0, failCount = 0, knownUsers; var unknownUsers = [], addedCount = 0, failCount = 0, knownUsers = [];
for (var i in command.usernames) { for (var i in command.usernames) {
// Check if the user exists // Check if the user exists
var chguserid = 'user/' + addUserDomain.id + '/' + command.usernames[i].toLowerCase(); var chguserid = 'user/' + addUserDomain.id + '/' + command.usernames[i].toLowerCase();