mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use the md5 index when looking up library items by original url
This commit is contained in:
parent
2c037d6a8a
commit
d339c5e8f1
1 changed files with 1 additions and 1 deletions
|
|
@ -669,7 +669,7 @@ export const findLibraryItemByUrl = async (
|
|||
.leftJoinAndSelect('recommender.profile', 'profile')
|
||||
.leftJoinAndSelect('recommendations.group', 'group')
|
||||
.where('library_item.user_id = :userId', { userId })
|
||||
.andWhere('library_item.original_url = :url', { url })
|
||||
.andWhere('md5(library_item.original_url) = md5(:url)', { url })
|
||||
.getOne(),
|
||||
undefined,
|
||||
userId
|
||||
|
|
|
|||
Loading…
Reference in a new issue