Some checks failed
Dev CI / Unit Tests (${{ matrix.app }}) (backend) (push) Blocked by required conditions
Dev CI / Unit Tests (${{ matrix.app }}) (frontend) (push) Blocked by required conditions
Dev CI / Notify Failure (push) Blocked by required conditions
Dev CI / Quality (${{ matrix.app }}) (backend) (push) Has been cancelled
Dev CI / Quality (${{ matrix.app }}) (frontend) (push) Has been cancelled
Aligns dev with the complete application codebase (cicd branch). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
973 B
TypeScript
27 lines
973 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { UsersController } from '../controllers/users.controller';
|
|
|
|
// Import domain ports
|
|
import { USER_REPOSITORY } from '@domain/ports/out/user.repository';
|
|
import { TypeOrmUserRepository } from '../../infrastructure/persistence/typeorm/repositories/typeorm-user.repository';
|
|
import { UserOrmEntity } from '../../infrastructure/persistence/typeorm/entities/user.orm-entity';
|
|
import { SubscriptionsModule } from '../subscriptions/subscriptions.module';
|
|
import { FeatureFlagGuard } from '../guards/feature-flag.guard';
|
|
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([UserOrmEntity]), SubscriptionsModule],
|
|
controllers: [UsersController],
|
|
providers: [
|
|
FeatureFlagGuard,
|
|
{
|
|
provide: USER_REPOSITORY,
|
|
useClass: TypeOrmUserRepository,
|
|
},
|
|
],
|
|
exports: [
|
|
USER_REPOSITORY, // optional, export if other modules need it
|
|
],
|
|
})
|
|
export class UsersModule {}
|