diff --git a/agent/proxysql.py b/agent/proxysql.py index d7bb8fc0..c03015ff 100644 --- a/agent/proxysql.py +++ b/agent/proxysql.py @@ -30,8 +30,8 @@ def add_user_job( username: str, password: str, database: str, + max_connections: int, backend: dict, - max_connections: int = 4, ): self.add_backend(backend) self.add_user(username, password, database, max_connections, backend) diff --git a/agent/web.py b/agent/web.py index e0e2eaa2..aa114633 100644 --- a/agent/web.py +++ b/agent/web.py @@ -1036,8 +1036,8 @@ def proxysql_add_user(): data["username"], data["password"], data["database"], + data["max_connections"], data["backend"], - max_connections=data["max_connections"], ) return {"job": job}