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",