badmfck-api-server 3.5.7 → 3.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -508,8 +508,9 @@ class MysqlAdapter {
508
508
  await trx.conn.commit();
509
509
  trx.conn.removeAllListeners();
510
510
  trx.conn.release();
511
- if (!donNotRemove)
512
- this.transactions = this.transactions.filter(i => i.id !== trx.id);
511
+ (0, LogService_1.logDB)("Rollback connection released", trx.conn.threadId);
512
+ if (!donNotRemove && this.transactions)
513
+ this.transactions = this.transactions.filter(i => trx && i && i.id !== trx.id);
513
514
  if (this.options.debug)
514
515
  (0, LogService_1.logDB)("Rollback complete", trx.conn.threadId);
515
516
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "3.5.7",
3
+ "version": "3.5.8",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",