trigger update home job once a new item is scored
This commit is contained in:
@ -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(),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user