mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-07 23:05:15 -04:00
Fix tests & misc errors
This commit is contained in:
@@ -25,7 +25,7 @@ import {
|
||||
sortToSql,
|
||||
} from "~/models/utils";
|
||||
import { desc } from "~/models/utils/descriptions";
|
||||
import type { WatchStatus } from "~/models/watchlist";
|
||||
import type { MovieWatchStatus, SerieWatchStatus } from "~/models/watchlist";
|
||||
import { showFilters, showSort } from "./shows/logic";
|
||||
|
||||
const staffSort = Sort(
|
||||
@@ -219,7 +219,7 @@ export const staffH = new Elysia({ tags: ["staff"] })
|
||||
|
||||
const watchStatusQ = db
|
||||
.select({
|
||||
watchStatus: jsonbBuildObject<WatchStatus>({
|
||||
watchStatus: jsonbBuildObject<MovieWatchStatus & SerieWatchStatus>({
|
||||
...getColumns(watchlist),
|
||||
percent: watchlist.seenCount,
|
||||
}).as("watchStatus"),
|
||||
|
||||
Reference in New Issue
Block a user