mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-07 20:18:49 +00:00
More fixes in send_play function
This commit is contained in:
@@ -635,8 +635,7 @@ function send_play(coll, socket)
|
||||
db.collection(coll).find({now_playing:true}, function(err, np){
|
||||
db.collection(coll).find({views:{$exists:true}}, function(err, conf){
|
||||
if(err !== null) console.log(err);
|
||||
if(conf === null) console.log(conf);
|
||||
if(conf !== null && conf.length != 0)
|
||||
if(conf !== null && conf !== undefined && conf.length != 0)
|
||||
{
|
||||
toSend = [np,conf,get_time()];
|
||||
if(socket === undefined)
|
||||
|
||||
Reference in New Issue
Block a user