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.
@@ -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,
|