Fixed dumpQueue debug function to return data from site-wide archived collection.
This commit is contained in:
parent
ea882bb3c3
commit
bbb3576a7d
1 changed files with 3 additions and 1 deletions
|
|
@ -424,6 +424,8 @@ class queue{
|
|||
if(data != null && data.full){
|
||||
//Pull the channel DB doc
|
||||
const chanDB = await channelModel.findOne({name:this.channel.name});
|
||||
//Pull archived media by channel name
|
||||
const archived = await archivedMediaModel.find({channel:this.channel.name});
|
||||
|
||||
//Cook and emit a new object from all of the data
|
||||
socket.emit("dumpQueue", {
|
||||
|
|
@ -434,7 +436,7 @@ class queue{
|
|||
DB: {
|
||||
schedule: chanDB.media.scheduled,
|
||||
nowPlaying: chanDB.media.nowPlaying,
|
||||
archived: chanDB.media.archived,
|
||||
archived,
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue