badmfck-api-server 2.3.8 → 2.3.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.
@@ -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
|
-
|
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,
|