Update create.ts

This commit is contained in:
freearhey 2025-02-27 22:05:31 +03:00
parent f097b09482
commit 37486d5771
1 changed files with 4 additions and 0 deletions

View File

@ -141,6 +141,10 @@ async function main() {
else if (channelSearchRequestsBuffer.has(channelId)) result.set('status', 'duplicate')
else if (blocklistGroupedByChannel.has(channelId)) result.set('status', 'blocked')
else if (streamsGroupedByChannel.has(channelId)) result.set('status', 'fulfilled')
else {
const channelData = channelsGroupedById.get(channelId)
if (channelData.length && channelData[0].closed) result.set('status', 'closed')
}
channelSearchRequestsBuffer.set(channelId, true)