diff --git a/src/db/adapters/DittoPostgres.ts b/src/db/adapters/DittoPostgres.ts index a75fe1b8..52258113 100644 --- a/src/db/adapters/DittoPostgres.ts +++ b/src/db/adapters/DittoPostgres.ts @@ -34,6 +34,6 @@ export class DittoPostgres { } static get availableConnections(): number { - return this.postgres.connections.max - this.postgres.connections.open; + return this.postgres.connections.closed; } }