Closed Tomas2D closed 2 months ago
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch swagger-stats@0.99.7 for the project I'm working on.
swagger-stats@0.99.7
Here is the diff that solved my problem:
diff --git a/node_modules/swagger-stats/lib/swsElasticEmitter.js b/node_modules/swagger-stats/lib/swsElasticEmitter.js index 6c44a9b..cd1c1c5 100644 --- a/node_modules/swagger-stats/lib/swsElasticEmitter.js +++ b/node_modules/swagger-stats/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 = '';
This issue body was partially generated by patch-package.
Duplicate: #279
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
swagger-stats@0.99.7
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.