Skip to content

Commit

Permalink
Fix client id
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Aug 16, 2024
1 parent 0af34b1 commit 147a88e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hypha/VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.20.23.post2"
"version": "0.20.23.post3"
}
4 changes: 3 additions & 1 deletion hypha/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,9 @@ async def delete_client(
self.validate_context(context, permission=UserPermission.admin)
cws = workspace
validate_key_part(client_id)

if "/" in client_id:
_cws, client_id = client_id.split("/")
assert _cws == cws, f"Client id workspace mismatch, {_cws} != {cws}"
# Define a pattern to match all services for the given client_id in the current workspace
pattern = f"services:*:{cws}/{client_id}:*@*"

Expand Down

0 comments on commit 147a88e

Please sign in to comment.