refactor: improve code readability by formatting arguments across multiple files
Test / test (push) Successful in 15s
Test / test (push) Successful in 15s
This commit is contained in:
+4
-2
@@ -68,7 +68,8 @@ async def list_deals(
|
||||
stage_value = DealStage(stage) if stage else None
|
||||
except ValueError as exc:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_400_BAD_REQUEST, detail="Invalid deal filter",
|
||||
status_code=status.HTTP_400_BAD_REQUEST,
|
||||
detail="Invalid deal filter",
|
||||
) from exc
|
||||
|
||||
params = DealQueryParams(
|
||||
@@ -100,7 +101,8 @@ async def create_deal(
|
||||
"""Create a new deal within the current organization."""
|
||||
|
||||
data = payload.to_domain(
|
||||
organization_id=context.organization_id, fallback_owner=context.user_id,
|
||||
organization_id=context.organization_id,
|
||||
fallback_owner=context.user_id,
|
||||
)
|
||||
try:
|
||||
deal = await service.create_deal(data, context=context)
|
||||
|
||||
Reference in New Issue
Block a user