use idle count to get avl connections

This commit is contained in:
Siddharth Singh 2024-07-16 07:35:45 +05:30
parent 53343ba349
commit 3aa8266bbe
No known key found for this signature in database

View file

@ -34,6 +34,6 @@ export class DittoPostgres {
} }
static get availableConnections(): number { static get availableConnections(): number {
return this.postgres.connections.closed; return this.postgres.connections.idle;
} }
} }