Files
bigcapital/server/src/subscribers/organization.ts
Ahmed Bouhuolia a22c8395f3 feat: remove path alias.
feat: remove Webpack and depend on nodemon.
feat: refactoring expenses.
feat: optimize system users with caching.
feat: architecture tenant optimize.
2020-09-15 00:51:39 +02:00

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 });
}
}