mirror of
https://github.com/immich-app/immich.git
synced 2026-04-04 16:22:02 -04:00
fix: flip deletedAt filter
This commit is contained in:
parent
ae653f9bf5
commit
7a215c16ab
@ -130,7 +130,7 @@ export class IntegrityRepository {
|
||||
.selectFrom((eb) =>
|
||||
eb
|
||||
.selectFrom('asset')
|
||||
.where('asset.deletedAt', 'is not', null)
|
||||
.where('asset.deletedAt', 'is', null)
|
||||
.select(['asset.originalPath as path'])
|
||||
.select((eb) => [
|
||||
eb.ref('asset.id').$castTo<string | null>().as('assetId'),
|
||||
@ -139,7 +139,7 @@ export class IntegrityRepository {
|
||||
.unionAll(
|
||||
eb
|
||||
.selectFrom('asset')
|
||||
.where('asset.deletedAt', 'is not', null)
|
||||
.where('asset.deletedAt', 'is', null)
|
||||
.select((eb) => [
|
||||
eb.ref('asset.encodedVideoPath').$castTo<string>().as('path'),
|
||||
eb.ref('asset.id').$castTo<string | null>().as('assetId'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user