mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Reimplemented vote and guid
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user