refactor(reviews): ♻️ Clean up module exports, imports, and providers in client-intel and reviews for better organization and redundancy removal
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
ff87a858bb
commit
b24b320fe6
4 changed files with 8 additions and 3 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { JwtStandaloneGuard } from '@lilith/nestjs-auth'
|
||||
import { DomainEventsModule, DOMAIN_EVENTS_QUEUE } from '@lilith/domain-events'
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry'
|
||||
import { BullModule } from '@nestjs/bullmq'
|
||||
|
|
@ -86,6 +87,7 @@ const registry = buildDeploymentRegistry({
|
|||
InternalClientIntelController,
|
||||
],
|
||||
providers: [
|
||||
JwtStandaloneGuard,
|
||||
{
|
||||
provide: 'REDIS_PORT',
|
||||
useFactory: () => {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { JwtStandaloneGuard } from '@lilith/nestjs-auth';
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
|
||||
|
|
@ -8,7 +9,7 @@ import { ClientReviewsController } from '@/controllers/client-reviews.controller
|
|||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([ClientReview])],
|
||||
controllers: [ClientReviewsController],
|
||||
providers: [ClientReviewsService],
|
||||
providers: [JwtStandaloneGuard, ClientReviewsService],
|
||||
exports: [ClientReviewsService],
|
||||
})
|
||||
export class ClientReviewsModule {}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { JwtStandaloneGuard } from '@lilith/nestjs-auth';
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
|
||||
|
|
@ -8,7 +9,7 @@ import { DisputesController } from '@/controllers/disputes.controller';
|
|||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([ReviewDispute, ProviderReview, ClientReview])],
|
||||
controllers: [DisputesController],
|
||||
providers: [DisputesService],
|
||||
providers: [JwtStandaloneGuard, DisputesService],
|
||||
exports: [DisputesService],
|
||||
})
|
||||
export class DisputesModule {}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { JwtStandaloneGuard } from '@lilith/nestjs-auth';
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
|
||||
|
|
@ -9,7 +10,7 @@ import { InternalReviewsController } from '@/controllers/internal-reviews.contro
|
|||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([ProviderReview])],
|
||||
controllers: [ProviderReviewsController, ProvidersReviewsController, InternalReviewsController],
|
||||
providers: [ProviderReviewsService],
|
||||
providers: [JwtStandaloneGuard, ProviderReviewsService],
|
||||
exports: [ProviderReviewsService],
|
||||
})
|
||||
export class ProviderReviewsModule {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue