set max db connections to 1
This commit is contained in:
parent
2b699899df
commit
ffec31e4d4
@ -10,7 +10,8 @@ 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();
|
||||||
|
Loading…
Reference in New Issue
Block a user