Adds api and subscriber

This commit is contained in:
olivermrbl committed 2020-07-09 14:46:01 +02:00
1 parent 1da69a33c1
commit 154564b80a
2 files changed
+13

No files matched your search

Whitespace-only changes.
@@ -0,0 +1,13 @@
class OrderSubscriber {
constructor({ economicService, eventBusService }) {
this.economicService_ = economicService
this.eventBus_ = eventBusService
this.eventBus_.subscribe("order.placed", async (order) => {
await this.economicService_.draftEconomicInvoice(order)
})
}
}
export default OrderSubscriber