diff --git a/app.js b/app.js index 1d821cc..abad4ac 100644 --- a/app.js +++ b/app.js @@ -337,11 +337,11 @@ app.post('/publish', async (req, res) => { // Set channel streaming status db.run('UPDATE channels SET live_at=? WHERE id=?', Date.now(), streamer.id) - cache.live.push(streamer.id) + cache.live.push(streamer.name) // Send notifications - if (!notifQueue.includes(streamer.user_uuid)) { - notifQueue.push(streamer.user_uuid) + if (!notifQueue.includes(streamer.id)) { + notifQueue.push(streamer.id) } // Redirect the streaming server to the target