Fix docker build

This commit is contained in:
Zoe Roux
2025-03-06 22:20:25 +01:00
parent fd2f3be663
commit e8ffe31330
3 changed files with 10 additions and 2 deletions
+1
View File
@@ -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
+3 -1
View File
@@ -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");
+6 -1
View File
@@ -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";