badmfck-api-server 2.3.8 → 2.3.9

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.8";
86
+ version = "2.3.9";
87
87
  options;
88
88
  monitor;
89
89
  monitorIndexFile;
@@ -457,8 +457,18 @@ class MysqlService extends BaseService_1.BaseService {
457
457
  return obj;
458
458
  const fields = [];
459
459
  for (let i in obj) {
460
- if (typeof obj[i] === "object") {
461
- const mo = obj[i];
460
+ if (obj[i] && typeof obj[i] === "object") {
461
+ let mo = obj[i];
462
+ if (!mo) {
463
+ mo = {
464
+ name: i,
465
+ value: null,
466
+ system: false,
467
+ ignoreInInsert: false,
468
+ ignoreInUpdate: false,
469
+ useInReplace: false
470
+ };
471
+ }
462
472
  fields.push({
463
473
  name: i,
464
474
  value: mo.value,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "2.3.8",
3
+ "version": "2.3.9",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",