fix failing jobs

This commit is contained in:
k00b 2025-02-01 15:36:48 -06:00
parent 074f0c0634
commit 89187db1ea
2 changed files with 9 additions and 2 deletions

View File

@ -117,6 +117,11 @@ export async function indexItem ({ data: { id, updatedAt }, apollo, models }) {
}` }`
}) })
if (!item) {
console.log('item not found', id)
return
}
// 2. index it with external version based on updatedAt // 2. index it with external version based on updatedAt
await _indexItem(item, { models, updatedAt }) await _indexItem(item, { models, updatedAt })
} }

View File

@ -31,7 +31,9 @@ export async function payWeeklyPostBounty ({ data: { id }, models, apollo, lnd }
bounty bounty
bountyPaidTo bountyPaidTo
comments(sort: "top") { comments(sort: "top") {
id comments {
id
}
} }
} }
}`, }`,
@ -44,7 +46,7 @@ export async function payWeeklyPostBounty ({ data: { id }, models, apollo, lnd }
throw new Error('Bounty already paid') throw new Error('Bounty already paid')
} }
const winner = item.comments[0] const winner = item.comments.comments[0]
if (!winner) { if (!winner) {
throw new Error('No winner') throw new Error('No winner')