diff --git a/src/controllers/queue_monitoring.ts b/src/controllers/queue_monitoring.ts index 6783947..f780937 100644 --- a/src/controllers/queue_monitoring.ts +++ b/src/controllers/queue_monitoring.ts @@ -160,9 +160,7 @@ export class QueueMonitoringController { return currentDate > latestDate ? current : latest; }, undefined); - console.log("latestOnGoing", latestOnGoing); - - (queueMonitoring as any).currentQueues = latestOnGoing + (queueMonitoring as any).currentQueue = latestOnGoing ? { room: roomIdToRoomObj[latestOnGoing.roomId]?.room || null, id: latestOnGoing.id, @@ -177,7 +175,7 @@ export class QueueMonitoringController { ...room, queues: [] })); - (queueMonitoring as any).currentQueues = []; + (queueMonitoring as any).currentQueue = null; } }