@@ -41,7 +41,7 @@ class EmailSenderProtocol(Protocol):
|
||||
class OrderRecord(Protocol):
|
||||
order_uuid: str
|
||||
account_email: str
|
||||
cdek_waybill_url: str | None
|
||||
provider_waybill_url: str | None
|
||||
|
||||
|
||||
class WaybillEmailSenderRepositoryProtocol(Protocol):
|
||||
@@ -133,7 +133,7 @@ class WaybillEmailSenderService:
|
||||
continue
|
||||
|
||||
async def _handle_order(self, session: object, order: OrderRecord) -> None:
|
||||
waybill_url = order.cdek_waybill_url
|
||||
waybill_url = order.provider_waybill_url
|
||||
if waybill_url is None:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user