fix: flip deletedAt filter

This commit is contained in:
izzy
2025-12-02 14:23:56 +00:00
parent ae653f9bf5
commit 7a215c16ab

View File

@@ -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'),