mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat: remove Webpack and depend on nodemon. feat: refactoring expenses. feat: optimize system users with caching. feat: architecture tenant optimize.
15 lines
400 B
TypeScript
15 lines
400 B
TypeScript
import { Container } from 'typedi';
|
|
import { On, EventSubscriber } from "event-dispatch";
|
|
import events from 'subscribers/events';
|
|
|
|
@EventSubscriber()
|
|
export class OrganizationSubscriber {
|
|
|
|
@On(events.organization.build)
|
|
public async onBuild(payload) {
|
|
const { tenant, user } = payload;
|
|
const agenda = Container.get('agenda');
|
|
|
|
await agenda.now('welcome-sms', { tenant, user });
|
|
}
|
|
} |