fix: filter null duplicate assets (#21507)

This commit is contained in:
Derock 2025-09-02 01:20:01 -04:00 committed by GitHub
parent e7b0a47be2
commit 5b8d72e91a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ with
) as "assets" ) as "assets"
from from
"asset" "asset"
left join lateral ( inner join lateral (
select select
"asset".*, "asset".*,
"asset_exif" as "exifInfo" "asset_exif" as "exifInfo"

View File

@ -34,7 +34,7 @@ export class DuplicateRepository {
qb qb
.selectFrom('asset') .selectFrom('asset')
.$call(withDefaultVisibility) .$call(withDefaultVisibility)
.leftJoinLateral( .innerJoinLateral(
(qb) => (qb) =>
qb qb
.selectFrom('asset_exif') .selectFrom('asset_exif')