badmfck-api-server 2.3.5 → 2.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.3.5";
86
+ version = "2.3.6";
87
87
  options;
88
88
  monitor;
89
89
  monitorIndexFile;
@@ -218,11 +218,6 @@ class MysqlService extends BaseService_1.BaseService {
218
218
  message: "Transaction not found"
219
219
  };
220
220
  }
221
- if (this.debug)
222
- console.log("Rollback transaction:", trx);
223
- this.transactions = this.transactions.filter(i => i.id !== tid);
224
- if (this.debug)
225
- console.log("Transaction pool:", this.transactions);
226
221
  this.rollbackTransaction(trx);
227
222
  return null;
228
223
  };
@@ -364,7 +359,7 @@ class MysqlService extends BaseService_1.BaseService {
364
359
  console.log("Store transaction fail report: ", file, trx, message);
365
360
  if (!this.failReportFileStream)
366
361
  this.failReportFileStream = fs_1.default.createWriteStream(file, { flags: 'a' });
367
- this.failReportFileStream.write(JSON.stringify({ queries: trx.queries, time: trx.timestamp, date, message }) + "\n{'s':'&$5__1AzZa'}\n", err => {
362
+ this.failReportFileStream.write(JSON.stringify({ queries: trx.queries, time: trx.timestamp, date, message }) + "\n}EOB{\n", err => {
368
363
  if (err)
369
364
  (0, LogService_1.logCrit)("${MysqlService.js}", "Can't write to transaction fail report file");
370
365
  else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",