badmfck-api-server 2.1.7 → 2.1.9

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.1.5";
86
+ version = "2.1.9";
87
87
  options;
88
88
  monitor;
89
89
  monitorIndexFile;
@@ -150,7 +150,8 @@ class MysqlService extends BaseService_1.BaseService {
150
150
  database: this.options.database,
151
151
  port: this.options.port,
152
152
  connectionLimit: this.options.connectionLimit,
153
- queueLimit: 10
153
+ queueLimit: 10,
154
+ multipleStatements: true
154
155
  });
155
156
  }
156
157
  catch (e) {
@@ -417,7 +418,7 @@ class MysqlService extends BaseService_1.BaseService {
417
418
  }
418
419
  async queryAsync(conn, query) {
419
420
  try {
420
- const result = await conn.execute(query);
421
+ const result = await conn.query(query);
421
422
  return {
422
423
  err: null,
423
424
  results: result[0],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "2.1.7",
3
+ "version": "2.1.9",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",