From 09f8da1429dbf601f7acacd3e623b35504f4d15a Mon Sep 17 00:00:00 2001 From: GareArc Date: Tue, 22 Apr 2025 22:20:29 -0400 Subject: [PATCH] fix: allow empty list api --- api/services/enterprise/enterprise_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/enterprise/enterprise_service.py b/api/services/enterprise/enterprise_service.py index dd0857745e..251d38885b 100644 --- a/api/services/enterprise/enterprise_service.py +++ b/api/services/enterprise/enterprise_service.py @@ -39,7 +39,7 @@ class EnterpriseService: @classmethod def batch_get_app_access_mode_by_id(cls, app_ids: list[str]) -> dict[str, WebAppSettings]: if not app_ids: - raise ValueError("app_ids must be provided.") + return {} body = {"appIds": app_ids} data: dict[str, str] = EnterpriseRequest.send_request("POST", "/webapp/access-mode/batch/id", json=body) if not data: