Setup future usage

This commit is contained in:
Sebastian Rindom
2020-07-13 17:35:50 +02:00
parent eeae2a056c
commit cd989c56a7
20 changed files with 282 additions and 26 deletions
+4
View File
@@ -21,6 +21,10 @@ class OrderSubscriber {
this.eventBus_.subscribe("order.placed", async order => {
await this.customerService_.addOrder(order.customer_id, order._id)
await this.customerService_.addAddress(
order.customer_id,
order.shipping_address
)
})
this.eventBus_.subscribe("order.placed", async order => {