mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: remove path alias.
feat: remove Webpack and depend on nodemon. feat: refactoring expenses. feat: optimize system users with caching. feat: architecture tenant optimize.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Container } from 'typedi';
|
||||
import { pick } from 'lodash';
|
||||
import { EventSubscriber, On } from 'event-dispatch';
|
||||
import events from '@/subscribers/events';
|
||||
import events from 'subscribers/events';
|
||||
|
||||
@EventSubscriber()
|
||||
export class AuthenticationSubscriber {
|
||||
|
||||
@@ -16,5 +16,12 @@ export default {
|
||||
|
||||
organization: {
|
||||
build: 'onOrganizationBuild',
|
||||
seeded: 'onOrganizationSeeded',
|
||||
},
|
||||
|
||||
tenantManager: {
|
||||
databaseCreated: 'onDatabaseCreated',
|
||||
tenantMigrated: 'onTenantMigrated',
|
||||
tenantSeeded: 'onTenantSeeded',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Container } from 'typedi';
|
||||
import { EventSubscriber, On } from 'event-dispatch';
|
||||
import events from '@/subscribers/events';
|
||||
import events from 'subscribers/events';
|
||||
|
||||
@EventSubscriber()
|
||||
export class InviteUserSubscriber {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Container } from 'typedi';
|
||||
import { On, EventSubscriber } from "event-dispatch";
|
||||
import events from '@/subscribers/events';
|
||||
import events from 'subscribers/events';
|
||||
|
||||
@EventSubscriber()
|
||||
export class OrganizationSubscriber {
|
||||
|
||||
22
server/src/subscribers/tenantManager.ts
Normal file
22
server/src/subscribers/tenantManager.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Container } from 'typedi';
|
||||
import { On, EventSubscriber } from "event-dispatch";
|
||||
import events from 'subscribers/events';
|
||||
|
||||
@EventSubscriber()
|
||||
export default class TenantManagerSubscriber {
|
||||
|
||||
@On(events.tenantManager.databaseCreated)
|
||||
onDatabaseCreated() {
|
||||
|
||||
}
|
||||
|
||||
@On(events.tenantManager.tenantMigrated)
|
||||
onTenantMigrated() {
|
||||
|
||||
}
|
||||
|
||||
@On(events.tenantManager.tenantSeeded)
|
||||
onTenantSeeded() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user