hotfix(webshipper): remove undefined logger
This commit is contained in:
@@ -1,14 +1,12 @@
|
|||||||
class WebshipperSubscriber {
|
class WebshipperSubscriber {
|
||||||
constructor({ eventBusService, logger, webshipperFulfillmentService }) {
|
constructor({ eventBusService, webshipperFulfillmentService }) {
|
||||||
this.webshipperService_ = webshipperFulfillmentService
|
this.webshipperService_ = webshipperFulfillmentService
|
||||||
|
|
||||||
eventBusService.subscribe("webshipper.shipment", this.handleShipment)
|
eventBusService.subscribe("webshipper.shipment", this.handleShipment)
|
||||||
}
|
}
|
||||||
|
|
||||||
handleShipment = async ({ headers, body }) => {
|
handleShipment = async ({ headers, body }) => {
|
||||||
return this.webshipperService_.handleWebhook(headers, body).catch((err) => {
|
return this.webshipperService_.handleWebhook(headers, body)
|
||||||
logger.warn(err)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user