diff options
| author | joonhoekim <26rote@gmail.com> | 2025-07-31 12:29:52 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-07-31 12:29:52 +0000 |
| commit | 494b8925db9aa442941b936ca1b9cfaefdb75f00 (patch) | |
| tree | 96fa045bea197577dc680fb62905edb8046a992d /db/db.ts | |
| parent | 0728ce2e0c085b8f1e8699bcdbe3d2000208bc74 (diff) | |
(김준회) MDG 수신 로직 개선건 오류 수정, 마이그레이션 대응 및 유틸 스크립트 경로 이동, DB connection 개수 제한
Diffstat (limited to 'db/db.ts')
| -rw-r--r-- | db/db.ts | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 }); |
