fix: sync sql

pull/24155/head
bwees 2025-12-03 22:18:24 -06:00
parent e8c48b5576
commit 5e6ee6fa09
No known key found for this signature in database
1 changed files with 4 additions and 2 deletions

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