Adds update payment + minor fixes
This commit is contained in:
@@ -30,14 +30,6 @@ class OrderSubscriber {
|
||||
await this.customerService_.addAddress(order.customer_id, address)
|
||||
})
|
||||
|
||||
this.eventBus_.subscribe("order.placed", async order => {
|
||||
await this.cartService_.delete(order.cart_id).catch(err => {
|
||||
if (err.type !== "not_found") {
|
||||
throw err
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
this.eventBus_.subscribe("order.placed", this.handleDiscounts)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user