From 3ecbfec3d488c1996090ed784c180d155de55d44 Mon Sep 17 00:00:00 2001 From: Philipp Kleybolte Date: Mon, 1 Jul 2024 13:23:39 +0200 Subject: [PATCH] remove unnecessary providers (#567) --- src/modules/person/person-api.module.ts | 12 +----------- src/modules/rolle/rolle.module.ts | 3 +-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/modules/person/person-api.module.ts b/src/modules/person/person-api.module.ts index 6efab4d8b..41d53efd9 100644 --- a/src/modules/person/person-api.module.ts +++ b/src/modules/person/person-api.module.ts @@ -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'; @@ -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, diff --git a/src/modules/rolle/rolle.module.ts b/src/modules/rolle/rolle.module.ts index 0f466d70d..d5813194f 100644 --- a/src/modules/rolle/rolle.module.ts +++ b/src/modules/rolle/rolle.module.ts @@ -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 {}