Reimplemented vote and guid

This commit is contained in:
Kasper Rynning-Tønnesen
2015-04-30 17:13:35 +02:00
parent 70288779ee
commit c13de21cd7

View File

@@ -205,10 +205,10 @@ io.on('connection', function(socket){
db.collection(coll).find({id:id}, function(err, docs){
if(docs.length == 0)
{
//var guids = [guid];
//var votes = 1;
var guids = [];
var votes = 0;
var guids = [guid];
var votes = 1;
//var guids = [];
//var votes = 0;
db.collection(coll).find({now_playing:true}, function(err, docs){
if(docs.length == 0)
np = true;