Add ?with=studios in movies & series

This commit is contained in:
2025-03-03 16:15:56 +01:00
parent 6cf8947c80
commit 750434465d
17 changed files with 1461 additions and 140 deletions

View File

@@ -141,8 +141,8 @@ export const insertEntries = async (
.select(
db
.select({
entry: sql<number>`vids.entryPk::integer`.as("entry"),
video: sql`${videos.pk}`.as("video"),
entryPk: sql<number>`vids.entryPk::integer`.as("entry"),
videoPk: sql`${videos.pk}`.as("video"),
slug: computeVideoSlug(
sql`${show.slug}::text`,
sql`vids.needRendering::boolean`,
@@ -154,7 +154,7 @@ export const insertEntries = async (
.onConflictDoNothing()
.returning({
slug: entryVideoJoin.slug,
entryPk: entryVideoJoin.entry,
entryPk: entryVideoJoin.entryPk,
});
return retEntries.map((entry) => ({