zet-lib 1.2.13 → 1.2.14
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 +3 -0
- package/package.json +2 -2
package/lib/zRoute.js
CHANGED
|
@@ -3399,6 +3399,9 @@ zRoute.import = async (req, res, MYMODEL) => {
|
|
|
3399
3399
|
if (keys[prop] == 'id') isInsert = false
|
|
3400
3400
|
columnCut++
|
|
3401
3401
|
}
|
|
3402
|
+
if (Object.keys(data).length == 0) {
|
|
3403
|
+
continue
|
|
3404
|
+
}
|
|
3402
3405
|
try {
|
|
3403
3406
|
if (isInsert) {
|
|
3404
3407
|
if (Util.in_array('company_id', fields)) data.company_id = res.locals.companyId
|
package/package.json
CHANGED