Adds createFromCart and order.completed subscribers
This commit is contained in:
1 parent
1e48ab3d74
commit
08cf7c7f2b
8 files changed
+119
-10
No files matched your search
@@ -7,6 +7,10 @@ class OrderSubscriber {
|
||||
this.eventBus_.subscribe("order.placed", async (order) => {
|
||||
await this.economicService_.draftEconomicInvoice(order)
|
||||
})
|
||||
|
||||
this.eventBus_.subscribe("order.completed", async (order) => {
|
||||
await this.economicService_.bookEconomicInvoice(order._id)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user