From 264739001547ea9f81ee683ee431518d4ca33ab1 Mon Sep 17 00:00:00 2001 From: vrotend Date: Tue, 3 Sep 2024 23:18:44 +0300 Subject: [PATCH] use pgpool2 --- src/utils/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/db.js b/src/utils/db.js index 13665a0c..22590802 100644 --- a/src/utils/db.js +++ b/src/utils/db.js @@ -2,7 +2,7 @@ import postgres from "postgres"; const connectionString = process.env.DB_URL ?? - `postgresql://${process.env.PSQL_USERNAME}:${process.env.PSQL_PW}@${process.env.PSQL_URL}:6433/cle37p03g00dhd6lff4ch90qw`; + `postgresql://${process.env.PSQL_USERNAME}:${process.env.PSQL_PW}@${process.env.PSQL_URL}:6432/cle37p03g00dhd6lff4ch90qw`; const sql = postgres(connectionString, { idle_timeout: 200, max_lifetime: 60 * 5, max: 10 });