zet-lib 1.2.107 → 1.2.108

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 +2 -2
  2. package/package.json +1 -1
package/lib/zRoute.js CHANGED
@@ -291,11 +291,11 @@ zRoute.post = (req, res, MYMODEL, routeName, body) => {
291
291
  const onlyNumbers = val.replace(/\D/g, '')
292
292
  val = parseInt(onlyNumbers)
293
293
  }
294
- post[routeName][key] = val ? val : null
294
+ post[routeName][key] = val ? val : val === 0 ? 0 : null
295
295
  break
296
296
 
297
297
  case 'numeric':
298
- post[routeName][key] = val ? val : null
298
+ post[routeName][key] = val ? val : val === 0 ? 0 : null
299
299
  break
300
300
 
301
301
  case 'json_array':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.2.107",
3
+ "version": "1.2.108",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"