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, ], }; }