zet-lib 1.0.98 → 1.2.0
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/connection.js +4 -0
- package/lib/zRoute.js +12 -1
- package/package.json +1 -1
package/lib/connection.js
CHANGED
package/lib/zRoute.js
CHANGED
|
@@ -240,7 +240,18 @@ zRoute.post = (req, res, MYMODEL, routeName, body) => {
|
|
|
240
240
|
} else {
|
|
241
241
|
let myw = []
|
|
242
242
|
for (let kkk in postTableData) {
|
|
243
|
-
|
|
243
|
+
let item = postTableData[kkk]
|
|
244
|
+
for (let k in item) {
|
|
245
|
+
if (widgetTables[k].name == 'dropdown_multi') {
|
|
246
|
+
//console.log(post[routeName][key]);
|
|
247
|
+
let cleaningdm
|
|
248
|
+
if (Array.isArray(item[k])) {
|
|
249
|
+
cleaningdm = item[k] ? item[k].filter((myitem) => myitem) : null
|
|
250
|
+
}
|
|
251
|
+
item[k] = cleaningdm
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
myw.push(item)
|
|
244
255
|
}
|
|
245
256
|
post[routeName][key] = JSON.stringify(myw)
|
|
246
257
|
}
|