Skip to content

Commit

Permalink
fix: 🐛 Inject GetUserUseCase in UsersModule
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Nov 19, 2024
1 parent 66310ac commit bb583de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/users/src/users/users.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import {
} from '@nestjs/apollo';
import { Module } from '@nestjs/common';
import { GraphQLModule } from '@nestjs/graphql';
import { UsersService } from '@users/application';
import { UsersService, GetUserUseCase } from '@users/application';
import { UsersResolver } from '@users/interface-adapters';
import { DatabaseModule } from '@shared/infrastructure-mongoose';

@Module({
providers: [UsersResolver, UsersService],
providers: [UsersResolver, UsersService, GetUserUseCase],
imports: [
GraphQLModule.forRoot<ApolloFederationDriverConfig>({
driver: ApolloFederationDriver,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Args, ID, Query, Resolver, ResolveReference } from '@nestjs/graphql';
import { Args, ID, Query, Resolver } from '@nestjs/graphql';
import { UsersService } from '@users/application';
import { User } from '@users/domain';

import { UserDto } from '../dto/user.dto';

Expand Down

0 comments on commit bb583de

Please sign in to comment.