This commit is contained in:
Karl 2025-07-15 18:47:54 +01:00
parent 2b601a5e44
commit 900d3c1cfe

View File

@ -104,10 +104,10 @@ def validate_account() -> Tuple[Response, int]:
)
return jsonify({"message": "Account is valid and updated", "data": result}), 200
if result.get("data", {}).get("user_info", {}).get("max_connections") and data.get("max_connections") and result["data"]["user_info"]["max_connections"] != data.get("max_connections"):
if int(result.get("data", {}).get("user_info", {}).get("max_connections")) and data.get("max_connections") and int(result["data"]["user_info"]["max_connections"]) != data.get("max_connections"):
from ktvmanager.lib.database import update_max_connections
update_max_connections(
username, stream, result["data"]["user_info"]["max_connections"]
username, stream, int(result["data"]["user_info"]["max_connections"])
)
return jsonify({"message": "Account is valid and updated", "data": result}), 200