Small fix for listener-counter

This commit is contained in:
Kasper Rynning-Tønnesen
2018-01-31 11:38:44 +01:00
parent 8cef8df219
commit dcb01e5034
2 changed files with 10 additions and 10 deletions

View File

@@ -54,7 +54,9 @@ function check_inlist(coll, guid, socket, offline)
db.collection("connected_users").update({"_id": coll}, {$addToSet: {users: guid}}, function(err, docs){});
}
//
db.collection("connected_users").update({"_id": "total_users"}, {$addToSet: {total_users: guid + coll}}, function(err, docs) {});
if(coll != undefined && coll != "") {
db.collection("connected_users").update({"_id": "total_users"}, {$addToSet: {total_users: guid + coll}}, function(err, docs) {});
}
}
}