From a99c2647b99503b0eaa18c89261c392a28af5880 Mon Sep 17 00:00:00 2001 From: Seung jun Date: Mon, 11 Jul 2022 11:40:22 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20::=20(#178)=20UserAnswerCo?= =?UTF-8?q?untUsecase=20=EB=93=B1=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/infrastructure/usecases-proxy/usecases-proxy.module.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/infrastructure/usecases-proxy/usecases-proxy.module.ts b/src/infrastructure/usecases-proxy/usecases-proxy.module.ts index b9e6e29..1a88347 100644 --- a/src/infrastructure/usecases-proxy/usecases-proxy.module.ts +++ b/src/infrastructure/usecases-proxy/usecases-proxy.module.ts @@ -66,6 +66,7 @@ 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'; +import { UserAnswerCountUsecase } from 'src/usecase/user/user-answer-count'; @Module({ imports: [LoggerModule, RepositoriesModule, ExceptionsModule, ElasticsearchModule, RedisCacheModule, ExpoModule], @@ -467,6 +468,11 @@ export class UsecasesProxyDynamicModule { provide: UserQuestionCountUsecase, useFactory: (databaseVideoRepository: DatabaseVideoRepository) => new UserQuestionCountUsecase(databaseVideoRepository), }, + { + inject: [DatabaseVideoRepository], + provide: UserAnswerCountUsecase, + useFactory: (databaseVideoRepository: DatabaseVideoRepository) => new UserAnswerCountUsecase(databaseVideoRepository), + }, ], exports: [ CreateQuestionUsecase, @@ -508,6 +514,7 @@ export class UsecasesProxyDynamicModule { QueryInquiryListUsecase, DeleteInquiryUsecase, UserQuestionCountUsecase, + UserAnswerCountUsecase, ], }; }