From 362fd51de08e1e250c99cad9ff47f1e0bd641959 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Tue, 29 Mar 2022 15:22:48 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B6=20Updated=20ES=20host?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/comic.model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/comic.model.ts b/models/comic.model.ts index 9f90856..d510630 100644 --- a/models/comic.model.ts +++ b/models/comic.model.ts @@ -8,9 +8,9 @@ import { MongoosasticModel, MongoosasticPluginOpts, } from "mongoosastic-ts/dist/types"; - +const ELASTICSEARCH_HOST = process.env.ELASTICSEARCH_URI || "http://localhost:9200"; export const eSClient = new Client({ - node: "http://localhost:9200", + node: ELASTICSEARCH_HOST, auth: { username: "elastic", password: "password",