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