fix: issues in organization build.

This commit is contained in:
Ahmed Bouhuolia
2020-09-05 15:12:38 +02:00
parent 481ca8aa8b
commit 79b7a02f85
10 changed files with 65 additions and 38 deletions

View File

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