refactor: remove comments
This commit is contained in:
@@ -60,21 +60,21 @@ class CreatePurchaseRequestCommand:
|
|||||||
'metadata': metadata,
|
'metadata': metadata,
|
||||||
}
|
}
|
||||||
self._logger.info(f'Create purchase request for organization_id={legal_entity.id } with rub_amount={rub_amount}')
|
self._logger.info(f'Create purchase request for organization_id={legal_entity.id } with rub_amount={rub_amount}')
|
||||||
# try:
|
try:
|
||||||
# await self._messanger.publish_to_queue(
|
await self._messanger.publish_to_queue(
|
||||||
# queue=settings.RABBIT_TELEGRAM_NOTIFY_QUEUE,
|
queue=settings.RABBIT_TELEGRAM_NOTIFY_QUEUE,
|
||||||
# message=message,
|
message=message,
|
||||||
# persist=True,
|
persist=True,
|
||||||
# correlation_id=trace_id,
|
correlation_id=trace_id,
|
||||||
# message_id=message_id,
|
message_id=message_id,
|
||||||
# headers={'trace_id': trace_id} if trace_id else None,
|
headers={'trace_id': trace_id} if trace_id else None,
|
||||||
# )
|
)
|
||||||
# except Exception as exception:
|
except Exception as exception:
|
||||||
# self._logger.error(f'Failed to publish purchase request notification for organization_id={legal_entity.id}: {str(exception)}')
|
self._logger.error(f'Failed to publish purchase request notification for organization_id={legal_entity.id}: {str(exception)}')
|
||||||
# raise ApplicationException(503, 'Temporary error. Please try again.')
|
raise ApplicationException(503, 'Temporary error. Please try again.')
|
||||||
|
|
||||||
# self._logger.info(f'Purchase request created id= organization_id={legal_entity.id }')
|
self._logger.info(f'Purchase request created id= organization_id={legal_entity.id }')
|
||||||
# return item
|
return item
|
||||||
|
|
||||||
|
|
||||||
class ListPurchaseRequestsCommand:
|
class ListPurchaseRequestsCommand:
|
||||||
|
|||||||
Reference in New Issue
Block a user