NCBACK-25 fix check duplicate exception
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-01-25 20:45:29 +07:00
parent 0a4ab562a4
commit 6dacbde522
2 changed files with 7 additions and 4 deletions
@@ -11,13 +11,12 @@ import java.util.List;
@Repository
public interface ImageSimilarityRepository
extends JpaRepository<FileEntity, String> {
@Query(value = """
SELECT
f.id AS similarFileId,
SELECT
f.id AS id,
f.original_file_name AS originalFileName,
f.file_size AS fileSize,
f.user_id AS userId,
h.hash64_hi AS hash64Hi,
h.hash64_lo AS hash64Lo
FROM image_hashes ref