From 779bc2c8fac06ff2211afe7e021769893dbffb58 Mon Sep 17 00:00:00 2001 From: William Ryder Date: Fri, 23 Feb 2024 11:54:18 +0100 Subject: [PATCH] fix: missed variable --- src/elastic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elastic.ts b/src/elastic.ts index 73d0290e..607e4660 100644 --- a/src/elastic.ts +++ b/src/elastic.ts @@ -25,7 +25,7 @@ class Elastic { private async createPdfIndex() { try { console.log(`Checking if index ${this.pdfIndex} exists...`); - const indexExists = await this.client.indices.exists({ index: pdfIndex }); + const indexExists = await this.client.indices.exists({ index: this.pdfIndex }); if (!indexExists) { await this.client.indices.create({ index: this.pdfIndex,