()
| 23 | @Module({}) |
| 24 | export class AiDynamicModule { |
| 25 | static forRoot(): DynamicModule { |
| 26 | const enterpriseModulePath = path.join(__dirname, '../enterprise/ai'); |
| 27 | const isEnterpriseLevel: boolean = fs.existsSync(enterpriseModulePath); |
| 28 | if (isEnterpriseLevel) { |
| 29 | const { AiEnterpriseModule } = require(`${enterpriseModulePath}/ai.enterprise.module`); |
| 30 | return { |
| 31 | module: AiEnterpriseModule, |
| 32 | }; |
| 33 | } |
| 34 | return { |
| 35 | module: AiModule, |
| 36 | }; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | @Module({}) |
no test coverage detected