mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: issues in organization build.
This commit is contained in:
@@ -6,11 +6,10 @@ import events from '@/subscribers/events';
|
||||
export class OrganizationSubscriber {
|
||||
|
||||
@On(events.organization.build)
|
||||
public onBuild(payload) {
|
||||
public async onBuild(payload) {
|
||||
const { tenant, user } = payload;
|
||||
const agenda = Container.get('agenda');
|
||||
|
||||
agenda.now('welcome-sms', {
|
||||
email, organizationName, firstName,
|
||||
});
|
||||
await agenda.now('welcome-sms', { tenant, user });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user