mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Merge branch 'master' of github.com:nixolas1/Zoff
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user