zet-lib 1.0.97 → 1.0.98
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.
- package/lib/zRoute.js +9 -1
- package/package.json +1 -1
package/lib/zRoute.js
CHANGED
|
@@ -235,7 +235,15 @@ zRoute.post = (req, res, MYMODEL, routeName, body) => {
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
if (Array.isArray(postTableData)) {
|
|
239
|
+
post[routeName][key] = JSON.stringify(postTableData)
|
|
240
|
+
} else {
|
|
241
|
+
let myw = []
|
|
242
|
+
for (let kkk in postTableData) {
|
|
243
|
+
myw.push(postTableData[kkk])
|
|
244
|
+
}
|
|
245
|
+
post[routeName][key] = JSON.stringify(myw)
|
|
246
|
+
}
|
|
239
247
|
break
|
|
240
248
|
|
|
241
249
|
case 'multi_line_editor':
|