From 6e7854b5bbf44f9abc9630615a6194561272a4ac Mon Sep 17 00:00:00 2001 From: izzy Date: Wed, 3 Dec 2025 16:46:08 +0000 Subject: [PATCH] chore: sync SQL --- server/src/queries/integrity.repository.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/queries/integrity.repository.sql b/server/src/queries/integrity.repository.sql index 72def33dc5..61ece2260d 100644 --- a/server/src/queries/integrity.repository.sql +++ b/server/src/queries/integrity.repository.sql @@ -95,7 +95,7 @@ select "allPaths"."path" as "path", "allPaths"."assetId", "allPaths"."fileAssetId", - "integrity_report"."path" as "reportId" + "integrity_report"."id" as "reportId" from ( select @@ -105,7 +105,7 @@ from from "asset" where - "asset"."deletedAt" is not null + "asset"."deletedAt" is null union all select "asset"."encodedVideoPath" as "path", @@ -114,7 +114,7 @@ from from "asset" where - "asset"."deletedAt" is not null + "asset"."deletedAt" is null and "asset"."encodedVideoPath" is not null and "asset"."encodedVideoPath" != '' union all