Skip to content

Commit

Permalink
fix (bug): resolve TypeError: create_api_key() got an unexpected keyw…
Browse files Browse the repository at this point in the history
…ord argument 'project_id' when starting variant container in oss
  • Loading branch information
aybruhm committed Oct 1, 2024
1 parent 31942ea commit cda9936
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agenta-backend/agenta_backend/services/app_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
from agenta_backend.services import deployment_manager

if isCloudEE():
from agenta_backend.commons.services import db_manager_ee
from agenta_backend.commons.services import (
api_key_service,
) # noqa pylint: disable-all
Expand Down Expand Up @@ -106,9 +107,10 @@ async def start_variant(
)
if isCloudEE():
user = await db_manager.get_user(user_uid=user_uid)
project = await db_manager_ee.get_project_by_id(project_id=project_id)
api_key = await api_key_service.create_api_key(
str(user.id),
project_id=project_id,
workspace_id=str(project.workspace_id),
expiration_date=None,
hidden=True,
)
Expand Down

0 comments on commit cda9936

Please sign in to comment.