diff --git a/api/Dockerfile b/api/Dockerfile index f3e7e177..3e434495 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -2,6 +2,7 @@ FROM oven/bun AS builder WORKDIR /app COPY package.json bun.lock . +COPY patches patches RUN bun install --production COPY src src diff --git a/api/src/controllers/entries.ts b/api/src/controllers/entries.ts index 7a3783cb..c18a9787 100644 --- a/api/src/controllers/entries.ts +++ b/api/src/controllers/entries.ts @@ -113,7 +113,9 @@ async function getEntries({ .leftJoin(videos, eq(videos.pk, entryVideoJoin.videoPk)) .as("videos"); 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) .as("videos_json"); diff --git a/api/tests/series/studios.test.ts b/api/tests/series/studios.test.ts index 9ddd2659..772139ef 100644 --- a/api/tests/series/studios.test.ts +++ b/api/tests/series/studios.test.ts @@ -1,5 +1,10 @@ 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 { madeInAbyss } from "~/models/examples";