From f229d31398c4c1e070bfa2e80e0bb763c1f260f2 Mon Sep 17 00:00:00 2001 From: jos3duardo Date: Sun, 17 Aug 2025 04:31:01 -0400 Subject: [PATCH] Set max database connections to 5 in config --- src/modules/database/database.module.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/database/database.module.ts b/src/modules/database/database.module.ts index 3c915c2..6a34b5a 100644 --- a/src/modules/database/database.module.ts +++ b/src/modules/database/database.module.ts @@ -15,8 +15,11 @@ import { Payment } from '../payments/entities/payment.entity'; password: configService.get('database.password'), database: configService.get('database.database'), entities: [Payment], + extra: { + max: 5, + // connectionTimeoutMillis: 3000, + }, synchronize: false, // Apenas para desenvolvimento - logging: process.env.NODE_ENV === 'development', }), inject: [ConfigService], }),