Fixed error on new channel

This commit is contained in:
Kasper Rynning-Tønnesen
2015-05-08 12:31:53 +02:00
parent 0b9139aa5b
commit 61ada15af3

View File

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