refactor: remove comments
This commit is contained in:
@@ -60,21 +60,21 @@ class CreatePurchaseRequestCommand:
|
||||
'metadata': metadata,
|
||||
}
|
||||
self._logger.info(f'Create purchase request for organization_id={legal_entity.id } with rub_amount={rub_amount}')
|
||||
# try:
|
||||
# await self._messanger.publish_to_queue(
|
||||
# queue=settings.RABBIT_TELEGRAM_NOTIFY_QUEUE,
|
||||
# message=message,
|
||||
# persist=True,
|
||||
# correlation_id=trace_id,
|
||||
# message_id=message_id,
|
||||
# headers={'trace_id': trace_id} if trace_id else None,
|
||||
# )
|
||||
# except Exception as 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.')
|
||||
try:
|
||||
await self._messanger.publish_to_queue(
|
||||
queue=settings.RABBIT_TELEGRAM_NOTIFY_QUEUE,
|
||||
message=message,
|
||||
persist=True,
|
||||
correlation_id=trace_id,
|
||||
message_id=message_id,
|
||||
headers={'trace_id': trace_id} if trace_id else None,
|
||||
)
|
||||
except Exception as 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.')
|
||||
|
||||
# self._logger.info(f'Purchase request created id= organization_id={legal_entity.id }')
|
||||
# return item
|
||||
self._logger.info(f'Purchase request created id= organization_id={legal_entity.id }')
|
||||
return item
|
||||
|
||||
|
||||
class ListPurchaseRequestsCommand:
|
||||
|
||||
Reference in New Issue
Block a user