Add support for externalId in POST /videos

This commit is contained in:
Zoe Roux
2025-05-02 00:47:54 +02:00
parent 7203155747
commit 71b3ee61af
8 changed files with 252 additions and 39 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ export const historyH = new Elysia({ tags: ["profiles"] })
})
.from(hist)
.leftJoin(entries, valEqEntries)
.leftJoinLateral(nextEntryQ, sql`true`),
.crossJoinLateral(nextEntryQ),
)
.onConflictDoUpdate({
target: [watchlist.profilePk, watchlist.showPk],
+1 -1
View File
@@ -112,7 +112,7 @@ export const nextup = new Elysia({ tags: ["profiles"] })
.from(entries)
.innerJoin(watchlist, eq(watchlist.nextEntry, entries.pk))
.innerJoin(transQ, eq(entries.pk, transQ.pk))
.leftJoinLateral(entryVideosQ, sql`true`)
.crossJoinLateral(entryVideosQ)
.leftJoin(entryProgressQ, eq(entries.pk, entryProgressQ.entryPk))
.where(
and(