Skip to content

Commit

Permalink
Merge pull request #46 from Klimatbyran/feat/save-to-elasticsearch
Browse files Browse the repository at this point in the history
Feat/save to elasticsearch
  • Loading branch information
schweinryder authored Feb 23, 2024
2 parents 5f2a406 + 22c8d4a commit aefdd6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elastic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit aefdd6b

Please sign in to comment.