dev #40

Merged
flfeders merged 14 commits from dev into main 2026-01-08 22:21:07 +00:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 14a9435a5a - Show all commits

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