Fixed DB
Some checks failed
Build and Push Docker Images / build-backend (push) Failing after 28s
Build and Push Docker Images / build-frontend (push) Successful in 15s

This commit is contained in:
2026-01-08 11:11:57 +01:00
parent 8126c2d3f4
commit 14a9435a5a
2 changed files with 2 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import { Pool } from "pg"
import {secrets} from "../src/utils/secrets"; import {secrets} from "../src/utils/secrets";
import * as schema from "./schema" import * as schema from "./schema"
const pool = new Pool({ export const pool = new Pool({
connectionString: secrets.DATABASE_URL, connectionString: secrets.DATABASE_URL,
max: 10, // je nach Last max: 10, // je nach Last
}) })

View File

@@ -1,7 +1,6 @@
import fp from "fastify-plugin" import fp from "fastify-plugin"
import {drizzle, NodePgDatabase} from "drizzle-orm/node-postgres" import {drizzle, NodePgDatabase} from "drizzle-orm/node-postgres"
import { Pool } from "pg" import { db, pool } from "../../db"
import { db } from "../../db"
export default fp(async (server, opts) => { export default fp(async (server, opts) => {
// Dekorieren -> überall server.db // Dekorieren -> überall server.db