Skip to content

Commit

Permalink
Merge pull request #2097 from Agenta-AI/feature/age-978-bug-unable-to…
Browse files Browse the repository at this point in the history
…-create-new-application

fix (bug): resolve error when starting application variant container
  • Loading branch information
aakrem authored Oct 1, 2024
2 parents 7668dfa + cda9936 commit 8e16498
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 8e16498

Please sign in to comment.