Skip to content

Commit

Permalink
Fix async method call
Browse files Browse the repository at this point in the history
  • Loading branch information
shri committed Aug 26, 2024
1 parent a9e3534 commit a1d1ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/domain/opportunities/controllers/opportunities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit a1d1ad0

Please sign in to comment.