forked from ToolJet/ToolJet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.ts
More file actions
22 lines (20 loc) · 850 Bytes
/
module.ts
File metadata and controls
22 lines (20 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { DynamicModule } from '@nestjs/common';
import { UserRepository } from '@modules/users/repositories/repository';
import { FilesRepository } from '@modules/files/repository';
import { FeatureAbilityFactory } from './ability';
import { SubModule } from '@modules/app/sub-module';
export class ProfileModule extends SubModule {
static async register(configs?: { IS_GET_CONTEXT: boolean }): Promise<DynamicModule> {
const { ProfileService, ProfileController, ProfileUtilService } = await this.getProviders(configs, 'profile', [
'service',
'controller',
'util.service',
]);
return {
module: ProfileModule,
providers: [FilesRepository, UserRepository, ProfileService, ProfileUtilService, FeatureAbilityFactory],
controllers: [ProfileController],
exports: [ProfileUtilService],
};
}
}