mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
trigger update home job once a new item is scored
This commit is contained in:
parent
4a54fa31af
commit
3c27125645
1 changed files with 6 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import {
|
|||
updateLibraryItem,
|
||||
} from '../services/library_item'
|
||||
import { Feature, getScores } from '../services/score'
|
||||
import { enqueueUpdateHomeJob } from '../utils/createTask'
|
||||
import { lanaugeToCode } from '../utils/helpers'
|
||||
import { logger } from '../utils/logger'
|
||||
|
||||
|
|
@ -81,4 +82,9 @@ export const scoreLibraryItem = async (
|
|||
true
|
||||
)
|
||||
logger.info('Library item scored', data)
|
||||
|
||||
await enqueueUpdateHomeJob({
|
||||
userId,
|
||||
cursor: Date.now(),
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue