Skip to content

Commit

Permalink
⚡️ :: (#178) UserQuestionCountUsecase 등록
Browse files Browse the repository at this point in the history
  • Loading branch information
flower1465 committed Jul 11, 2022
1 parent 0f99a0b commit bc73c49
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/infrastructure/usecases-proxy/usecases-proxy.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ import { CreateInquiryUsecase } from 'src/usecase/inquiry/create-inquiry';
import { DeleteInquiryUsecase } from 'src/usecase/inquiry/delete-inquiry';
import { QueryInquiryListUsecase } from 'src/usecase/inquiry/query-inquiry-list';
import { DatabaseInquiryCategoryRepository } from '../repositories/inquiry-category.repository';
import { GetCountUserQuestionPresenter } from 'src/presentation/question/get-count-user-question.presenter';
import { UserQuestionCountUsecase } from 'src/usecase/user/user-question-count';

@Module({
imports: [LoggerModule, RepositoriesModule, ExceptionsModule, ElasticsearchModule, RedisCacheModule, ExpoModule],
Expand Down Expand Up @@ -460,6 +462,11 @@ export class UsecasesProxyDynamicModule {
useFactory: (databaseInquiryRepository: DatabaseInquiryRepository, exceptionsService: ExceptionsService) =>
new DeleteInquiryUsecase(databaseInquiryRepository, exceptionsService),
},
{
inject: [DatabaseVideoRepository],
provide: UserQuestionCountUsecase,
useFactory: (databaseVideoRepository: DatabaseVideoRepository) => new UserQuestionCountUsecase(databaseVideoRepository),
},
],
exports: [
CreateQuestionUsecase,
Expand Down Expand Up @@ -500,6 +507,7 @@ export class UsecasesProxyDynamicModule {
CreateInquiryUsecase,
QueryInquiryListUsecase,
DeleteInquiryUsecase,
UserQuestionCountUsecase,
],
};
}
Expand Down

0 comments on commit bc73c49

Please sign in to comment.