bugfix: convert config val to int

This commit is contained in:
Arjun Rao
2025-05-09 04:22:46 +10:00
parent f2c522ce7a
commit 6ebd76d5da

View File

@@ -54,7 +54,7 @@ class PostgreSQLDB:
self.password = config.get("password", None)
self.database = config.get("database", "postgres")
self.workspace = config.get("workspace", "default")
self.max = config.get("max_connections", 12)
self.max = int(config.get("max_connections", 12))
self.increment = 1
self.pool: Pool | None = None