Small fix for coll/channel issue

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-07 11:04:51 +02:00
parent b886878c43
commit b84ee96907

View File

@@ -224,7 +224,7 @@ function addPlaylist(arr, guid, offline, socket) {
db.collection(channel).find({now_playing: true}, function(e, np_docs) {
to_change.id = np_docs[0].id;
to_change.title = np_docs[0].title;
db.collection("frontpage_lists").find({_id: coll}, function(e, doc) {
db.collection("frontpage_lists").find({_id: channel}, function(e, doc) {
if(doc.length > 0 && doc[0].thumbnail != "" && doc[0].thumbnail != undefined) {
to_change.thumbnail = np_docs[0].thumbnail;
}