mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix /movies select distinct
This commit is contained in:
parent
7fcaf6490d
commit
9fc5f8a706
@ -222,9 +222,10 @@ export const movies = new Elysia({ prefix: "/movies", tags: ["movies"] })
|
||||
const { kind, startAir, endAir, ...moviesCol } = getColumns(shows);
|
||||
|
||||
const transQ = db
|
||||
.select()
|
||||
.selectDistinctOn([showTranslations.pk])
|
||||
.from(showTranslations)
|
||||
.orderBy(
|
||||
showTranslations.pk,
|
||||
sql`array_position(${sqlarr(langs)}, ${showTranslations.language})`,
|
||||
)
|
||||
.as("t");
|
||||
|
Loading…
x
Reference in New Issue
Block a user