From 494b8925db9aa442941b936ca1b9cfaefdb75f00 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Thu, 31 Jul 2025 12:29:52 +0000 Subject: (김준회) MDG 수신 로직 개선건 오류 수정, 마이그레이션 대응 및 유틸 스크립트 경로 이동, DB connection 개수 제한 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/db.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'db') diff --git a/db/db.ts b/db/db.ts index b1dce69d..95e3d89a 100644 --- a/db/db.ts +++ b/db/db.ts @@ -4,7 +4,8 @@ import * as schema from './schema'; const pool = new Pool({ // connectionString: process.env.DATABASE_URL as string, - connectionString: "postgresql://dts:dujinDTS2@localhost:5432/evcp" + connectionString: "postgresql://dts:dujinDTS2@localhost:5432/evcp", + max: Number(process.env.DB_POOL_MAX) || 4, }); const db = drizzle(pool, { schema }); -- cgit v1.2.3