Skip to content

Commit

Permalink
fix: ESQuery 클래스를 injectable로 두어 모듈에 추가 #138
Browse files Browse the repository at this point in the history
  • Loading branch information
koomchang committed Nov 20, 2024
1 parent 52b40c9 commit 4188823
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions backend/src/search/query/ElasticSearchQuery.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ElasticsearchService } from '@nestjs/elasticsearch';
import { ElasticSearchConfig } from '@src/config/ElasticSearchConfig';
import { Injectable } from '@nestjs/common';

@Injectable()
export class ElasticSearchQuery {
constructor(private readonly esService: ElasticsearchService) {}

Expand Down
3 changes: 2 additions & 1 deletion backend/src/search/search.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ConfigModule, ConfigService } from '@nestjs/config';
import { SearchController } from '@src/search/search.controller';
import { SearchService } from '@src/search/search.service';
import { PlaceModule } from '@src/place/place.module';
import { ElasticSearchQuery } from '@src/search/query/ElasticSearchQuery';

@Module({
imports: [
Expand All @@ -22,7 +23,7 @@ import { PlaceModule } from '@src/place/place.module';
inject: [ConfigService],
}),
],
providers: [SearchService],
providers: [SearchService, ElasticSearchQuery],
controllers: [SearchController],
exports: [],
})
Expand Down

0 comments on commit 4188823

Please sign in to comment.