change to connection-stats branch

This commit is contained in:
Siddharth Singh
2024-07-15 14:23:23 +05:30
parent c2b13b1a63
commit 404306f203
3 changed files with 15 additions and 2 deletions

View File

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