fix: sync sql

This commit is contained in:
bwees
2025-12-03 22:18:24 -06:00
parent e8c48b5576
commit 5e6ee6fa09

View File

@@ -217,6 +217,8 @@ select
"asset"."originalPath",
"asset"."ownerId",
"asset"."type",
"asset"."width",
"asset"."height",
(
select
coalesce(json_agg(agg), '[]')
@@ -245,13 +247,13 @@ select
"asset_file"
where
"asset_file"."assetId" = "asset"."id"
and "asset_file"."type" = $1
and "asset_file"."type" = $2
) as agg
) as "files"
from
"asset"
where
"asset"."id" = $2
"asset"."id" = $3
-- AssetJobRepository.getAlbumThumbnailFiles
select