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:
@@ -80,7 +80,9 @@ class ContactService:
|
||||
)
|
||||
try:
|
||||
return await self._repository.list(
|
||||
params=params, role=context.role, user_id=context.user_id,
|
||||
params=params,
|
||||
role=context.role,
|
||||
user_id=context.user_id,
|
||||
)
|
||||
except ContactAccessError as exc:
|
||||
raise ContactForbiddenError(str(exc)) from exc
|
||||
@@ -126,7 +128,10 @@ class ContactService:
|
||||
return contact
|
||||
try:
|
||||
return await self._repository.update(
|
||||
contact, payload, role=context.role, user_id=context.user_id,
|
||||
contact,
|
||||
payload,
|
||||
role=context.role,
|
||||
user_id=context.user_id,
|
||||
)
|
||||
except ContactAccessError as exc:
|
||||
raise ContactForbiddenError(str(exc)) from exc
|
||||
|
||||
Reference in New Issue
Block a user