Skip to content

Commit

Permalink
Merge pull request #839 from Sanofi-IADC/feature/WEB-2246
Browse files Browse the repository at this point in the history
fix: WEB-2246 parse pool size
  • Loading branch information
sairam459 authored Jun 3, 2024
2 parents caf55ec + 3e10c65 commit 5e0def2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/config/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ export class ConfigService {
readPreference: this.get('REPLICASET') !== undefined ? readPreference : null,
user: this.get('MONGOOSE_USERNAME'),
pass: this.get('MONGOOSE_PASSWORD'),
maxPoolSize: this.get('MONGOOSE_POOL_SIZE') || 20,
maxPoolSize: this.get('MONGOOSE_POOL_SIZE')
? parseInt(this.get('MONGOOSE_POOL_SIZE'), 10)
: 20,
retryAttempts: 2,
connectTimeoutMS: 60000,
socketTimeoutMS: 60000,
Expand Down

0 comments on commit 5e0def2

Please sign in to comment.