Fixed issue with localmode

This commit is contained in:
Kasper Rynning-Tønnesen
2018-04-06 17:50:25 +02:00
parent a44856eb57
commit 6bac97c15f
2 changed files with 4 additions and 3 deletions

View File

@@ -59,6 +59,7 @@ function get_short_id(socket) {
function check_inlist(coll, guid, socket, offline)
{
if(coll == undefined) return;
coll = coll.replace(/ /g,'');
if(!offline && coll != undefined){
db.collection("connected_users").update({"_id": coll}, {$addToSet:{users: guid}}, {upsert: true}, function(err, updated) {