From 98ecc0a4eb793e730c519264185c1c9740471915 Mon Sep 17 00:00:00 2001 From: GareArc Date: Thu, 25 Dec 2025 22:27:40 -0800 Subject: [PATCH] refactor: update cleanup_webapp method to use params instead of json for DELETE request --- api/services/enterprise/enterprise_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/services/enterprise/enterprise_service.py b/api/services/enterprise/enterprise_service.py index 93e96f818c..f2d01c6631 100644 --- a/api/services/enterprise/enterprise_service.py +++ b/api/services/enterprise/enterprise_service.py @@ -104,11 +104,11 @@ class EnterpriseService: response = EnterpriseRequest.send_request("POST", "/webapp/access-mode", json=data) return response.get("result", False) - + @classmethod def cleanup_webapp(cls, app_id: str): if not app_id: raise ValueError("app_id must be provided.") - body = {"appId": app_id} - EnterpriseRequest.send_request("DELETE", "/webapp/clean", json=body) + params = {"appId": app_id} + EnterpriseRequest.send_request("DELETE", "/webapp/clean", params=params)