mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
fix: ignore external libraries for integrity report checksum check (#29248)
This commit is contained in:
parent
c0bf5a4c56
commit
c484bd99b6
3 changed files with 18 additions and 0 deletions
|
|
@ -129,6 +129,7 @@ from
|
|||
and "integrity_report"."type" = $1
|
||||
where
|
||||
"asset"."deletedAt" is null
|
||||
and "asset"."isExternal" = false
|
||||
and "integrity_report"."createdAt" >= $2
|
||||
and "integrity_report"."createdAt" <= $3
|
||||
order by
|
||||
|
|
|
|||
|
|
@ -177,6 +177,7 @@ export class IntegrityRepository {
|
|||
'asset.id as assetId',
|
||||
'integrity_report.id as reportId',
|
||||
])
|
||||
.where('asset.isExternal', '=', sql.lit(false))
|
||||
.$if(startMarker !== undefined, (qb) => qb.where('integrity_report.createdAt', '>=', startMarker!))
|
||||
.$if(endMarker !== undefined, (qb) => qb.where('integrity_report.createdAt', '<=', endMarker!))
|
||||
.orderBy('integrity_report.createdAt', 'asc')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue