badmfck-api-server 2.2.4 → 2.2.6

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.
@@ -83,7 +83,7 @@ async function Initializer(services) {
83
83
  exports.Initializer = Initializer;
84
84
  class APIService extends BaseService_1.BaseService {
85
85
  static nextLogID = 0;
86
- version = "2.2.4";
86
+ version = "2.2.6";
87
87
  options;
88
88
  monitor;
89
89
  monitorIndexFile;
@@ -190,6 +190,8 @@ class MysqlService extends BaseService_1.BaseService {
190
190
  trx.conn.removeAllListeners();
191
191
  await trx.conn.rollback();
192
192
  trx.conn.release();
193
+ this.transactions = this.transactions.filter(i => i.id !== data.tid);
194
+ this.storeTransactionAsProblem(trx, err.message);
193
195
  }
194
196
  catch (e) {
195
197
  rollbackError = this.createMysqlQueryError(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",