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.
Files changed (2) hide show
  1. package/lib/zRoute.js +9 -1
  2. 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
- post[routeName][key] = JSON.stringify(postTableData)
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':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"