1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-25 05:02:46 +01:00
immich/server/libs/domain/src/domain.module.ts

21 lines
462 B
TypeScript
Raw Normal View History

import { DynamicModule, Global, Module, ModuleMetadata, Provider } from '@nestjs/common';
import { UserService } from './user';
const providers: Provider[] = [
//
UserService,
];
@Global()
@Module({})
export class DomainModule {
static register(options: Pick<ModuleMetadata, 'imports'>): DynamicModule {
return {
module: DomainModule,
imports: options.imports,
providers: [...providers],
exports: [...providers],
};
}
}