mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #4073 from omnivore-app/feature/skip-updating-score-in-database
do not update library item score in database for now
This commit is contained in:
commit
0e299e3433
1 changed files with 10 additions and 13 deletions
|
|
@ -1,7 +1,4 @@
|
|||
import {
|
||||
findLibraryItemById,
|
||||
updateLibraryItem,
|
||||
} from '../services/library_item'
|
||||
import { findLibraryItemById } from '../services/library_item'
|
||||
import { Feature, getScores } from '../services/score'
|
||||
import { enqueueUpdateHomeJob } from '../utils/createTask'
|
||||
import { lanaugeToCode } from '../utils/helpers'
|
||||
|
|
@ -72,15 +69,15 @@ export const scoreLibraryItem = async (
|
|||
throw new Error('Failed to score library item')
|
||||
}
|
||||
|
||||
await updateLibraryItem(
|
||||
libraryItem.id,
|
||||
{
|
||||
score,
|
||||
},
|
||||
userId,
|
||||
undefined,
|
||||
true
|
||||
)
|
||||
// await updateLibraryItem(
|
||||
// libraryItem.id,
|
||||
// {
|
||||
// score,
|
||||
// },
|
||||
// userId,
|
||||
// undefined,
|
||||
// true
|
||||
// )
|
||||
logger.info('Library item scored', data)
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue