From 6a61a976e47471c13d2823fe54c3a1d3e2e17bba Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 17 Jul 2025 14:04:25 +0800 Subject: [PATCH] perf: Workspace api --- backend/apps/system/api/workspace.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/apps/system/api/workspace.py b/backend/apps/system/api/workspace.py index 6c285135..c541d1af 100644 --- a/backend/apps/system/api/workspace.py +++ b/backend/apps/system/api/workspace.py @@ -78,8 +78,6 @@ async def pager( oid: Optional[int] = Query(None, description="空间ID(仅admin用户生效)"), ): if current_user.isAdmin: - if not oid: - raise RuntimeError('oid miss error') workspace_id = oid else: workspace_id = current_user.oid