This commit is contained in:
Omer Sabic 2024-06-13 14:14:50 +02:00
parent 84a9673759
commit bfe1c4fe0a

View File

@ -10,8 +10,7 @@ export let db;
export const initDb = async () => { export const initDb = async () => {
const client = new Pool({ const client = new Pool({
connectionString: env.DATABASE_URL, connectionString: env.DATABASE_URL
max: 1
}); });
await client.connect(); await client.connect();