mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 09:17:06 +08:00
perf: Workspace api
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user