This commit is contained in:
Kasper Rynning-Tønnesen
2015-05-09 01:20:15 +02:00
5 changed files with 92 additions and 18 deletions

View File

@@ -637,8 +637,6 @@ function sort_list(coll, socket, send, list_send)
function send_play(coll, socket)
{
db.collection(coll).find({now_playing:true}, function(err, np){
if(np.length != 0)
{
db.collection(coll).find({views:{$exists:true}}, function(err, conf){
if(conf.length != 0)
{
@@ -649,7 +647,6 @@ function send_play(coll, socket)
socket.emit(coll+",np", toSend);
}
});
}
});
}