From 2f61876a4464ad3c05c6ffc6dadc10f73880003b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Dvo=C5=99=C3=A1k?= Date: Mon, 22 Apr 2024 09:54:32 +0200 Subject: [PATCH] fix: 'that' is not defined --- lib/swsElasticEmitter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/swsElasticEmitter.js b/lib/swsElasticEmitter.js index 6c44a9b..cd1c1c5 100644 --- a/lib/swsElasticEmitter.js +++ b/lib/swsElasticEmitter.js @@ -280,7 +280,7 @@ swsElasticEmitter.prototype.flush = function(){ } }).catch((error)=>{ debug(`Indexing Error: ${error.message}`); - that.enabled = false; + this.enabled = false; }); this.indexBuffer = '';