mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-24 16:49:48 +00:00
19 lines
411 B
TypeScript
19 lines
411 B
TypeScript
import events from '@/subscribers/events';
|
|
import { EventSubscriber } from '@/lib/EventPublisher/EventPublisher';
|
|
import { Service } from 'typedi';
|
|
|
|
@Service()
|
|
export default class ItemSubscriber extends EventSubscriber {
|
|
/**
|
|
* Attaches the events with handles.
|
|
* @param bus
|
|
*/
|
|
attach(bus) {
|
|
bus.subscribe(events.item.onCreated, this.handleItemCreated);
|
|
}
|
|
|
|
handleItemCreated() {
|
|
|
|
}
|
|
}
|