From a1d1ad09bf77d8c9e40e4d6f8860f49e2dc5ea2d Mon Sep 17 00:00:00 2001 From: shri Date: Mon, 26 Aug 2024 19:22:24 +0200 Subject: [PATCH] Fix async method call --- src/app/domain/opportunities/controllers/opportunities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/domain/opportunities/controllers/opportunities.py b/src/app/domain/opportunities/controllers/opportunities.py index 9fed57ae..489a1772 100644 --- a/src/app/domain/opportunities/controllers/opportunities.py +++ b/src/app/domain/opportunities/controllers/opportunities.py @@ -154,7 +154,7 @@ async def update_opportunity( raise ValidationException("Owner does not exist") # Verify if the user is part of the same tenant as the opportunity - opportunity = OpportunityService.get_one(opportunity_id) + opportunity = await OpportunityService.get_one(opportunity_id) if not opportunity: raise ValidationException("Opportunity does not exist")