mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix: issues in organization build.
This commit is contained in:
@@ -11,9 +11,6 @@ export default ({ mongoConnection, knex }) => {
|
||||
const smsClientInstance = SmsClientLoader();
|
||||
const dbManager = dbManagerFactory();
|
||||
|
||||
Container.set('agenda', agendaInstance);
|
||||
LoggerInstance.info('Agenda has been injected into container');
|
||||
|
||||
Container.set('logger', LoggerInstance)
|
||||
LoggerInstance.info('Logger instance has been injected into container');
|
||||
|
||||
@@ -29,6 +26,9 @@ export default ({ mongoConnection, knex }) => {
|
||||
Container.set('dbManager', dbManager);
|
||||
LoggerInstance.info('Database manager has been injected into container.');
|
||||
|
||||
Container.set('agenda', agendaInstance);
|
||||
LoggerInstance.info('Agenda has been injected into container');
|
||||
|
||||
return { agenda: agendaInstance };
|
||||
} catch (e) {
|
||||
LoggerInstance.error('Error on dependency injector loader: %o', e);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// Here we import all events.
|
||||
import '@/subscribers/authentication';
|
||||
|
||||
import '@/subscribers/organization';
|
||||
|
||||
@@ -15,12 +15,7 @@ import UserInviteMailJob from '@/jobs/UserInviteMail';
|
||||
export default ({ agenda }: { agenda: Agenda }) => {
|
||||
new WelcomeEmailJob(agenda);
|
||||
new ResetPasswordMailJob(agenda);
|
||||
|
||||
agenda.define(
|
||||
'welcome-sms',
|
||||
{ priority: 'high' },
|
||||
new WelcomeSMSJob().handler
|
||||
);
|
||||
new WelcomeSMSJob(agenda);
|
||||
|
||||
// User invite mail.
|
||||
agenda.define(
|
||||
|
||||
Reference in New Issue
Block a user