From bc73c4978c97c4094954ce44247a1b6f49187b5e Mon Sep 17 00:00:00 2001 From: Seung jun Date: Mon, 11 Jul 2022 11:33:28 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20::=20(#178)=20UserQuestion?= =?UTF-8?q?CountUsecase=20=EB=93=B1=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../usecases-proxy/usecases-proxy.module.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/infrastructure/usecases-proxy/usecases-proxy.module.ts b/src/infrastructure/usecases-proxy/usecases-proxy.module.ts index 4a35c0d..b9e6e29 100644 --- a/src/infrastructure/usecases-proxy/usecases-proxy.module.ts +++ b/src/infrastructure/usecases-proxy/usecases-proxy.module.ts @@ -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], @@ -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, @@ -500,6 +507,7 @@ export class UsecasesProxyDynamicModule { CreateInquiryUsecase, QueryInquiryListUsecase, DeleteInquiryUsecase, + UserQuestionCountUsecase, ], }; }