Update scripts

This commit is contained in:
freearhey 2025-02-22 12:54:00 +03:00
parent 96cb43c398
commit 9b4c7325ee
6 changed files with 63 additions and 29 deletions

View file

@ -35,8 +35,8 @@ async function main() {
const addRequests = await loader.load({ labels: ['streams:add'] })
const buffer = new Dictionary()
addRequests.forEach((issue: Issue) => {
const channelId = issue.data.get('channel_id') || undefined
const streamUrl = issue.data.get('stream_url') || undefined
const channelId = issue.data.getString('channel_id') || undefined
const streamUrl = issue.data.getString('stream_url')
const result = new Dictionary({
issueNumber: issue.number,
@ -61,8 +61,8 @@ async function main() {
logger.info('checking streams:edit requests...')
const editRequests = await loader.load({ labels: ['streams:edit'] })
editRequests.forEach((issue: Issue) => {
const channelId = issue.data.get('channel_id') || undefined
const streamUrl = issue.data.get('stream_url') || undefined
const channelId = issue.data.getString('channel_id') || undefined
const streamUrl = issue.data.getString('stream_url') || undefined
const result = new Dictionary({
issueNumber: issue.number,
@ -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 brokenLinks = issue.data.get('broken_links') || undefined
const brokenLinks = issue.data.getString('broken_links') || undefined
const result = new Dictionary({
issueNumber: issue.number,