Skip to content

Commit

Permalink
⚡️ :: (#178) UserAnswerCountUsecase 등록
Browse files Browse the repository at this point in the history
  • Loading branch information
flower1465 committed Jul 11, 2022
1 parent 114bbfd commit a99c264
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/infrastructure/usecases-proxy/usecases-proxy.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -508,6 +514,7 @@ export class UsecasesProxyDynamicModule {
QueryInquiryListUsecase,
DeleteInquiryUsecase,
UserQuestionCountUsecase,
UserAnswerCountUsecase,
],
};
}
Expand Down

0 comments on commit a99c264

Please sign in to comment.