From 5980ad7b16428d4822ea957635aa20654492d890 Mon Sep 17 00:00:00 2001 From: Lluis Date: Wed, 6 Mar 2024 01:02:59 +0100 Subject: [PATCH] stream id when still live --- services/twitch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/services/twitch.js b/services/twitch.js index a3eb413..bbf6009 100644 --- a/services/twitch.js +++ b/services/twitch.js @@ -33,6 +33,7 @@ async function getStream() { await dbManager.updateChannel(config.twitch.channels, { live: false, streamId: null }) result = { type: 'finished', messageId: channel.lastMessageId, streamId: channel.streamId} } else if (liveData && channel.live) { + await dbManager.updateChannel(config.twitch.channels, { streamId: liveData.id }) result = { ...liveData, type: 'stillLive', messageId: channel.lastMessageId, lastTitle: channel.title} }