badmfck-api-server 2.2.3 → 2.2.4

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.2.3";
86
+ version = "2.2.4";
87
87
  options;
88
88
  monitor;
89
89
  monitorIndexFile;
@@ -47,7 +47,7 @@ export interface MySqlQuery {
47
47
  query: string;
48
48
  fields: MysqlQueryField[] | MysqlQueryFieldObject;
49
49
  rollbackQuery?: string | null;
50
- transactionID: number;
50
+ transactionID?: number;
51
51
  }
52
52
  export interface MysqlQueryField {
53
53
  name: string;
@@ -134,7 +134,7 @@ class MysqlService extends BaseService_1.BaseService {
134
134
  const promises = [];
135
135
  for (let i of data) {
136
136
  const query = MysqlService.prepareQuery(i.query, i.fields);
137
- promises.push(this.execute(query, i.rollbackQuery ?? null, i.transactionID));
137
+ promises.push(this.execute(query, i.rollbackQuery ?? null, i.transactionID ?? 0));
138
138
  }
139
139
  return await Promise.all(promises);
140
140
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",