mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-22 15:12:28 -04:00
Fix nextEntry query in history (alias mismatch)
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user