mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-08 07:15:15 -04:00
Use original with collections too
This commit is contained in:
+1
-1
@@ -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>) => {
|
||||
|
||||
Reference in New Issue
Block a user