Adds update payment + minor fixes

This commit is contained in:
olivermrbl
2020-08-20 08:19:03 +02:00
parent f68c3fe067
commit 9028a5afab
9 changed files with 94 additions and 36 deletions
-8
View File
@@ -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)
}