Add GET /videos/ that also list guesses

This commit is contained in:
Zoe Roux
2025-04-09 22:41:45 +02:00
parent c504cbbff5
commit 621c9cec82
3 changed files with 84 additions and 3 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ export const nullif = <T>(val: SQL<T> | Column, eq: SQL<T>) => {
return sql<T>`nullif(${val}, ${eq})`;
};
export const jsonbObjectAgg = <T>(key: SQLWrapper, value: SQL<T>) => {
export const jsonbObjectAgg = <T>(key: SQLWrapper, value: SQL<T> | SQLWrapper) => {
return sql<
Record<string, T>
>`jsonb_object_agg(${sql.join([key, value], sql.raw(","))})`;