zet-lib 1.2.54 → 1.2.55
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 +2 -2
- package/package.json +1 -1
package/lib/zRoute.js
CHANGED
|
@@ -3525,8 +3525,8 @@ zRoute.import = async (req, res, MYMODEL) => {
|
|
|
3525
3525
|
//console.log(JSON.stringify(result))
|
|
3526
3526
|
for (let prop in keys) {
|
|
3527
3527
|
//console.log(prop)
|
|
3528
|
-
let value = result[prop] ? result[prop] : null
|
|
3529
|
-
if (value) {
|
|
3528
|
+
let value = result[prop] == 0 ? 0 : result[prop] ? result[prop] : null
|
|
3529
|
+
if (value != null) {
|
|
3530
3530
|
if (aliasRelations.includes(keys[prop])) {
|
|
3531
3531
|
let result_alias = await connection.result({
|
|
3532
3532
|
select: `id, ${MYMODEL.widgets[keys[prop]].import_field} `,
|