fix: issue in mail sender.

This commit is contained in:
a.bouhuolia
2020-12-17 01:16:08 +02:00
parent 3ac6d8897e
commit 46d06bd591
32 changed files with 538 additions and 334 deletions

View File

@@ -4,12 +4,13 @@ import events from 'subscribers/events';
@EventSubscriber()
export class OrganizationSubscriber {
/**
* Sends welcome SMS once the organization build completed.
*/
@On(events.organization.build)
public async onBuild(payload) {
const { tenant, user } = payload;
public async onBuild({ tenant, user }) {
const agenda = Container.get('agenda');
await agenda.now('welcome-sms', { tenant, user });
await agenda.now('welcome-sms', { tenant, user });
}
}