Fixed dumpQueue debug function to return data from site-wide archived collection.

This commit is contained in:
rainbow napkin 2026-05-29 20:08:50 -04:00
parent ea882bb3c3
commit bbb3576a7d

View file

@ -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,
}
});