From 41888234d976b02c83c13b4a8e4f8da6988e8d96 Mon Sep 17 00:00:00 2001 From: koomchang Date: Wed, 20 Nov 2024 13:46:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20ESQuery=20=ED=81=B4=EB=9E=98=EC=8A=A4?= =?UTF-8?q?=EB=A5=BC=20injectable=EB=A1=9C=20=EB=91=90=EC=96=B4=20?= =?UTF-8?q?=EB=AA=A8=EB=93=88=EC=97=90=20=EC=B6=94=EA=B0=80=20#138?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/search/query/ElasticSearchQuery.ts | 2 ++ backend/src/search/search.module.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/search/query/ElasticSearchQuery.ts b/backend/src/search/query/ElasticSearchQuery.ts index bbbbe829..420c2664 100644 --- a/backend/src/search/query/ElasticSearchQuery.ts +++ b/backend/src/search/query/ElasticSearchQuery.ts @@ -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) {} diff --git a/backend/src/search/search.module.ts b/backend/src/search/search.module.ts index a711e1ee..fa0cd8bb 100644 --- a/backend/src/search/search.module.ts +++ b/backend/src/search/search.module.ts @@ -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: [ @@ -22,7 +23,7 @@ import { PlaceModule } from '@src/place/place.module'; inject: [ConfigService], }), ], - providers: [SearchService], + providers: [SearchService, ElasticSearchQuery], controllers: [SearchController], exports: [], })