From bbb3576a7d666e4d0ef4ab346899cdf70c2267af Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Fri, 29 May 2026 20:08:50 -0400 Subject: [PATCH] Fixed dumpQueue debug function to return data from site-wide archived collection. --- src/app/channel/media/queue.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/channel/media/queue.js b/src/app/channel/media/queue.js index 8c6b092..e257bc8 100644 --- a/src/app/channel/media/queue.js +++ b/src/app/channel/media/queue.js @@ -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, } });