mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
do not fail score job if failed to enqueue updating home job
This commit is contained in:
parent
3c27125645
commit
bc4951f376
1 changed files with 7 additions and 4 deletions
|
|
@ -83,8 +83,11 @@ export const scoreLibraryItem = async (
|
|||
)
|
||||
logger.info('Library item scored', data)
|
||||
|
||||
await enqueueUpdateHomeJob({
|
||||
userId,
|
||||
cursor: Date.now(),
|
||||
})
|
||||
try {
|
||||
await enqueueUpdateHomeJob({
|
||||
userId,
|
||||
})
|
||||
} catch (error) {
|
||||
logger.error('Failed to enqueue update home job', error)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue