Use original with collections too

This commit is contained in:
Zoe Roux
2025-03-09 16:46:04 +01:00
parent aab38f6a89
commit d61573668b
7 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ export const jsonbObjectAgg = <T>(key: SQLWrapper, value: SQL<T>) => {
};
export const jsonbAgg = <T>(val: SQL<T>) => {
return sql<T>`jsonb_agg(${val})`;
return sql<T[]>`jsonb_agg(${val})`;
};
export const jsonbBuildObject = <T>(select: Record<string, SQLWrapper>) => {