This commit is contained in:
Evert Prants 2021-02-13 21:13:48 +02:00
parent 6769b371be
commit 1ab2c3df17
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

6
app.js
View File

@ -337,11 +337,11 @@ app.post('/publish', async (req, res) => {
// Set channel streaming status // Set channel streaming status
db.run('UPDATE channels SET live_at=? WHERE id=?', Date.now(), streamer.id) 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 // Send notifications
if (!notifQueue.includes(streamer.user_uuid)) { if (!notifQueue.includes(streamer.id)) {
notifQueue.push(streamer.user_uuid) notifQueue.push(streamer.id)
} }
// Redirect the streaming server to the target // Redirect the streaming server to the target