mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 20:25:32 -04:00
fix(server): metadata extraction job on missing does not include file with missing nullable field
This commit is contained in:
parent
55a3c30664
commit
39867906ce
@ -683,8 +683,15 @@ export class AssetRepository {
|
|||||||
.$if(property === WithoutProperty.EXIF, (qb) =>
|
.$if(property === WithoutProperty.EXIF, (qb) =>
|
||||||
qb
|
qb
|
||||||
.leftJoin('asset_job_status as job_status', 'assets.id', 'job_status.assetId')
|
.leftJoin('asset_job_status as job_status', 'assets.id', 'job_status.assetId')
|
||||||
.where((eb) => eb.or([eb('job_status.metadataExtractedAt', 'is', null), eb('assetId', 'is', null)]))
|
.where((eb) =>
|
||||||
.where('assets.isVisible', '=', true),
|
eb.or([
|
||||||
|
eb('job_status.metadataExtractedAt', 'is', null),
|
||||||
|
eb('assetId', 'is', null),
|
||||||
|
eb('assets.fileCreatedAt', 'is', null),
|
||||||
|
eb('assets.fileModifiedAt', 'is', null),
|
||||||
|
eb('assets.localDateTime', 'is', null),
|
||||||
|
]),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
.$if(property === WithoutProperty.FACES, (qb) =>
|
.$if(property === WithoutProperty.FACES, (qb) =>
|
||||||
qb
|
qb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user