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.
Files changed (2) hide show
  1. package/lib/zRoute.js +9 -5
  2. 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
- if (MODELS_DRAGDROPS[table]) {
4531
- MODELS_DRAGDROPS[table].map((item) => {
4532
- connection.results(item.objectSQL).then(function (results) {
4533
- myCache.set(item.key, results)
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')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"