mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(server): search duplicates of the same asset type (#9747)
* search by type * make sql --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
50f9b2d44e
commit
e7c8501930
5 changed files with 16 additions and 6 deletions
|
|
@ -204,6 +204,7 @@ WITH
|
|||
"asset"."ownerId" IN ($2)
|
||||
AND "asset"."id" != $3
|
||||
AND "asset"."isVisible" = $4
|
||||
AND "asset"."type" = $5
|
||||
)
|
||||
AND ("asset"."deletedAt" IS NULL)
|
||||
ORDER BY
|
||||
|
|
@ -216,7 +217,7 @@ SELECT
|
|||
FROM
|
||||
"cte" "res"
|
||||
WHERE
|
||||
res.distance <= $5
|
||||
res.distance <= $6
|
||||
|
||||
-- SearchRepository.searchFaces
|
||||
START TRANSACTION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue