Skip to content

Commit

Permalink
Refactor (configs_router): access app_id from base_db.app Link object
Browse files Browse the repository at this point in the history
  • Loading branch information
aybruhm committed May 16, 2024
1 parent 17d5e9b commit da57485
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions agenta-backend/agenta_backend/routers/configs_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
db_manager,
app_manager,
)
from agenta_backend.models.db_models import VariantBaseDB

if isCloudEE():
from agenta_backend.commons.models.db_models import Permission
Expand Down Expand Up @@ -111,9 +110,8 @@ async def get_config(

# in case environment_name is provided, find the variant deployed
if environment_name:
await base_db.fetch_link(VariantBaseDB.app)
app_environments = await db_manager.list_environments(
app_id=str(base_db.app.id)
app_id=str(base_db.app.ref.id)
)
found_variant_revision = next(
(
Expand Down

0 comments on commit da57485

Please sign in to comment.