From 1fb459d5c5e71e251d5da4f68e5c3606846ad29a Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Thu, 26 Dec 2024 03:10:30 +0300 Subject: [PATCH] Update create.ts --- scripts/commands/report/create.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/commands/report/create.ts b/scripts/commands/report/create.ts index 030a10d60..74b73f610 100644 --- a/scripts/commands/report/create.ts +++ b/scripts/commands/report/create.ts @@ -82,7 +82,7 @@ async function main() { logger.info('checking broken streams reports...') const brokenStreamReports = await loader.load({ labels: ['broken stream'] }) brokenStreamReports.forEach((issue: Issue) => { - const streamUrl = issue.data.get('stream_url') || undefined + const brokenLinks = issue.data.get('broken_links') || undefined const result = new Dictionary({ issueNumber: issue.number, @@ -91,8 +91,8 @@ async function main() { status: undefined }) - if (!streamUrl) result.set('status', 'missing_link') - else if (groupedStreams.missing(streamUrl)) result.set('status', 'invalid_link') + if (!brokenLinks) result.set('status', 'missing_link') + else if (groupedStreams.missing(brokenLinks)) result.set('status', 'invalid_link') else result.set('status', 'pending') report.add(result.data())