Updated a small part for logging

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-26 19:42:17 +02:00
parent 58bc3d138f
commit f08f63edfc
6 changed files with 16 additions and 15 deletions

View File

@@ -120,12 +120,13 @@ function get_short_id(socket) {
socket.emit("id", new_short_id);
}
function check_inlist(coll, guid, socket, offline, callback)
function check_inlist(coll, guid, socket, offline, callback, double_check)
{
if(coll == undefined) {
if(typeof(callback) == "function") callback();
return;
}
console.log(coll, double_check);
//coll = coll.replace(/ /g,'');
if(!offline && coll != undefined){
db.collection("connected_users").update({"_id": coll}, {$addToSet:{users: guid}}, {upsert: true}, function(err, updated) {