mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-08 07:15:15 -04:00
Add GET /videos/ that also list guesses
This commit is contained in:
+1
-1
@@ -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(","))})`;
|
||||
|
||||
Reference in New Issue
Block a user