Fix nextEntry query in history (alias mismatch)

This commit is contained in:
Zoe Roux 2025-04-09 00:00:16 +02:00
parent 20f8640790
commit 7bd1de3df6
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View File

@ -206,11 +206,11 @@ export const historyH = new Elysia({ tags: ["profiles"] })
.where(
and(
eq(nextEntry.showPk, entries.showPk),
ne(entries.kind, "extra"),
ne(nextEntry.kind, "extra"),
gt(nextEntry.order, entries.order),
),
)
.orderBy(nextEntry.showPk, entries.order)
.orderBy(nextEntry.order)
.limit(1)
.as("nextEntryQ");

View File

@ -3,10 +3,7 @@ import {
addToHistory,
createMovie,
createSerie,
getEntries,
getHistory,
getMovie,
getNews,
getNextup,
getSerie,
getWatchlist,