mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
add server to monorepo.
This commit is contained in:
18
packages/server/src/subscribers/Items/ItemSubscriber.ts
Normal file
18
packages/server/src/subscribers/Items/ItemSubscriber.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user