Skip to content

Commit

Permalink
remove unnecessary providers
Browse files Browse the repository at this point in the history
  • Loading branch information
pkleybolte committed Jun 28, 2024
1 parent 596b93e commit 41854a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
12 changes: 1 addition & 11 deletions src/modules/person/person-api.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ import { PersonModule } from './person.module.js';
import { PersonFrontendController } from './api/person.frontend.controller.js';
import { PersonenkontextUc } from '../personenkontext/api/personenkontext.uc.js';
import { PersonenKontextModule } from '../personenkontext/personenkontext.module.js';
import { UsernameGeneratorService } from './domain/username-generator.service.js';
import { PersonRepository } from './persistence/person.repository.js';
import { RolleModule } from '../rolle/rolle.module.js';
import { OrganisationModule } from '../organisation/organisation.module.js';
import { KeycloakAdministrationModule } from '../keycloak-administration/keycloak-administration.module.js';
import { DBiamPersonenuebersichtController } from './api/personenuebersicht/dbiam-personenuebersicht.controller.js';
import { DBiamPersonenkontextRepo } from '../personenkontext/persistence/dbiam-personenkontext.repo.js';
import { PersonInfoController } from './api/person-info.controller.js';
import { PersonApiMapper } from './mapper/person-api.mapper.js';
import { DBiamPersonController } from './api/dbiam-person.controller.js';
Expand All @@ -29,14 +26,7 @@ import { EventModule } from '../../core/eventbus/event.module.js';
LoggerModule.register(PersonApiModule.name),
EventModule,
],
providers: [
PersonApiMapperProfile,
PersonenkontextUc,
UsernameGeneratorService,
PersonRepository,
DBiamPersonenkontextRepo,
PersonApiMapper,
],
providers: [PersonApiMapperProfile, PersonenkontextUc, PersonApiMapper],
controllers: [
PersonController,
PersonFrontendController,
Expand Down
3 changes: 1 addition & 2 deletions src/modules/rolle/rolle.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import { Module } from '@nestjs/common';
import { LoggerModule } from '../../core/logging/logger.module.js';
import { RolleRepo } from './repo/rolle.repo.js';
import { ServiceProviderModule } from '../service-provider/service-provider.module.js';
import { ServiceProviderRepo } from '../service-provider/repo/service-provider.repo.js';
import { RolleFactory } from './domain/rolle.factory.js';
import { OrganisationModule } from '../organisation/organisation.module.js';

@Module({
imports: [ServiceProviderModule, LoggerModule.register(RolleModule.name), OrganisationModule],
providers: [RolleRepo, RolleFactory, ServiceProviderRepo],
providers: [RolleRepo, RolleFactory],
exports: [RolleRepo, RolleFactory],
})
export class RolleModule {}

0 comments on commit 41854a0

Please sign in to comment.