mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix nextEntry
query in history (alias mismatch)
This commit is contained in:
parent
20f8640790
commit
7bd1de3df6
@ -206,11 +206,11 @@ export const historyH = new Elysia({ tags: ["profiles"] })
|
|||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
eq(nextEntry.showPk, entries.showPk),
|
eq(nextEntry.showPk, entries.showPk),
|
||||||
ne(entries.kind, "extra"),
|
ne(nextEntry.kind, "extra"),
|
||||||
gt(nextEntry.order, entries.order),
|
gt(nextEntry.order, entries.order),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.orderBy(nextEntry.showPk, entries.order)
|
.orderBy(nextEntry.order)
|
||||||
.limit(1)
|
.limit(1)
|
||||||
.as("nextEntryQ");
|
.as("nextEntryQ");
|
||||||
|
|
||||||
|
@ -3,10 +3,7 @@ import {
|
|||||||
addToHistory,
|
addToHistory,
|
||||||
createMovie,
|
createMovie,
|
||||||
createSerie,
|
createSerie,
|
||||||
getEntries,
|
|
||||||
getHistory,
|
|
||||||
getMovie,
|
getMovie,
|
||||||
getNews,
|
|
||||||
getNextup,
|
getNextup,
|
||||||
getSerie,
|
getSerie,
|
||||||
getWatchlist,
|
getWatchlist,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user