Fixed DB
This commit is contained in:
@@ -3,7 +3,7 @@ import { Pool } from "pg"
|
||||
import {secrets} from "../src/utils/secrets";
|
||||
import * as schema from "./schema"
|
||||
|
||||
const pool = new Pool({
|
||||
export const pool = new Pool({
|
||||
connectionString: secrets.DATABASE_URL,
|
||||
max: 10, // je nach Last
|
||||
})
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import fp from "fastify-plugin"
|
||||
import {drizzle, NodePgDatabase} from "drizzle-orm/node-postgres"
|
||||
import { Pool } from "pg"
|
||||
import { db } from "../../db"
|
||||
import { db, pool } from "../../db"
|
||||
|
||||
export default fp(async (server, opts) => {
|
||||
// Dekorieren -> überall server.db
|
||||
|
||||
Reference in New Issue
Block a user