mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 05:34:23 -04:00
Fix docker build
This commit is contained in:
parent
fd2f3be663
commit
e8ffe31330
@ -2,6 +2,7 @@ FROM oven/bun AS builder
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json bun.lock .
|
COPY package.json bun.lock .
|
||||||
|
COPY patches patches
|
||||||
RUN bun install --production
|
RUN bun install --production
|
||||||
|
|
||||||
COPY src src
|
COPY src src
|
||||||
|
@ -113,7 +113,9 @@ async function getEntries({
|
|||||||
.leftJoin(videos, eq(videos.pk, entryVideoJoin.videoPk))
|
.leftJoin(videos, eq(videos.pk, entryVideoJoin.videoPk))
|
||||||
.as("videos");
|
.as("videos");
|
||||||
const videosJ = db
|
const videosJ = db
|
||||||
.select({ videos: sql`coalesce(json_agg("videos"), '[]'::json)`.as("videos") })
|
.select({
|
||||||
|
videos: sql`coalesce(json_agg("videos"), '[]'::json)`.as("videos"),
|
||||||
|
})
|
||||||
.from(videosQ)
|
.from(videosQ)
|
||||||
.as("videos_json");
|
.as("videos_json");
|
||||||
|
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
import { beforeAll, describe, expect, it } from "bun:test";
|
import { beforeAll, describe, expect, it } from "bun:test";
|
||||||
import { createSerie, getSerie, getShowsByStudio, getStudio } from "tests/helpers";
|
import {
|
||||||
|
createSerie,
|
||||||
|
getSerie,
|
||||||
|
getShowsByStudio,
|
||||||
|
getStudio,
|
||||||
|
} from "tests/helpers";
|
||||||
import { expectStatus } from "tests/utils";
|
import { expectStatus } from "tests/utils";
|
||||||
import { madeInAbyss } from "~/models/examples";
|
import { madeInAbyss } from "~/models/examples";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user