zet-lib 1.3.3 → 1.3.4
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 +9 -5
- package/package.json +1 -1
package/lib/zRoute.js
CHANGED
|
@@ -4527,11 +4527,14 @@ zRoute.modelsCacheRenew = (table, companyId) => {
|
|
|
4527
4527
|
}
|
|
4528
4528
|
|
|
4529
4529
|
let MODELS_DRAGDROPS = myCache.get('MODELS_DRAGDROPS')
|
|
4530
|
-
|
|
4531
|
-
MODELS_DRAGDROPS[
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4530
|
+
for (let key in MODELS_DRAGDROPS) {
|
|
4531
|
+
let DRAGDROPS = MODELS_DRAGDROPS[key] || []
|
|
4532
|
+
DRAGDROPS.map((item) => {
|
|
4533
|
+
if (item.objectSQL.table == table) {
|
|
4534
|
+
connection.results(item.objectSQL).then(function (results) {
|
|
4535
|
+
myCache.set(item.key, results)
|
|
4536
|
+
})
|
|
4537
|
+
}
|
|
4535
4538
|
})
|
|
4536
4539
|
}
|
|
4537
4540
|
}
|
|
@@ -4539,6 +4542,7 @@ zRoute.modelsCacheRenew = (table, companyId) => {
|
|
|
4539
4542
|
console.log(err)
|
|
4540
4543
|
}
|
|
4541
4544
|
}
|
|
4545
|
+
|
|
4542
4546
|
zRoute.makeFunctionsSystem = () => {
|
|
4543
4547
|
try {
|
|
4544
4548
|
let obj = myCache.get('ZFUNCTIONS')
|