mirror of https://github.com/langgenius/dify.git
refactor: update cleanup_webapp method to use params instead of json for DELETE request
This commit is contained in:
parent
780f969121
commit
98ecc0a4eb
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue