hotfix(webshipper): remove undefined logger

This commit is contained in:
Sebastian Rindom
2020-11-13 13:53:58 +01:00
parent a32f6ef989
commit 4acd0f216f

View File

@@ -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)
}
}