mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
fix: issue in mail sender.
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user