fix failing jobs
This commit is contained in:
parent
074f0c0634
commit
89187db1ea
@ -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
|
||||
await _indexItem(item, { models, updatedAt })
|
||||
}
|
||||
|
@ -31,9 +31,11 @@ export async function payWeeklyPostBounty ({ data: { id }, models, apollo, lnd }
|
||||
bounty
|
||||
bountyPaidTo
|
||||
comments(sort: "top") {
|
||||
comments {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,
|
||||
variables: { id }
|
||||
})
|
||||
@ -44,7 +46,7 @@ export async function payWeeklyPostBounty ({ data: { id }, models, apollo, lnd }
|
||||
throw new Error('Bounty already paid')
|
||||
}
|
||||
|
||||
const winner = item.comments[0]
|
||||
const winner = item.comments.comments[0]
|
||||
|
||||
if (!winner) {
|
||||
throw new Error('No winner')
|
||||
|
Loading…
x
Reference in New Issue
Block a user