Skip to content

Commit

Permalink
cleanup (backend): remove redundant function 'get_workspace_id_from_a…
Browse files Browse the repository at this point in the history
…pikey' from oss
  • Loading branch information
aybruhm committed Nov 5, 2024
1 parent 27fe844 commit f6880f8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions agenta-backend/agenta_backend/routers/app_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,8 @@ async def create_app(
Permission.CREATE_APPLICATION,
)

workspace_id_from_apikey = await db_manager_ee.get_workspace_id_from_apikey(
api_key_from_headers, request.state.user_id
)
if payload.workspace_id is None:
payload.workspace_id = workspace_id_from_apikey
payload.workspace_id = request.state.workspace_id

try:
user_org_workspace_data = await get_user_org_and_workspace_id(
Expand Down

0 comments on commit f6880f8

Please sign in to comment.