string tuple

This commit is contained in:
mertalev
2025-05-05 10:33:48 -04:00
parent 21bbf2f5e2
commit 71cc045405
12 changed files with 21 additions and 127 deletions
+1 -1
View File
@@ -652,7 +652,7 @@ export class AssetRepository {
(eb) =>
eb
.selectFrom('assets as stacked')
.select(sql`json_build_array(stacked."stackId", count('stacked'))`.as('stack'))
.select(sql`array[stacked."stackId"::text, count('stacked')::text]`.as('stack'))
.whereRef('stacked.stackId', '=', 'assets.stackId')
.where('stacked.deletedAt', 'is', null)
.where('stacked.isArchived', '=', false)