zet-lib 1.2.53 → 1.2.54

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
@@ -3581,15 +3581,15 @@ zRoute.import = async (req, res, MYMODEL) => {
3581
3581
  if (mydatas.lock == 1) {
3582
3582
  hd += `<td class='text text-success'>Data is locked</td>`
3583
3583
  } else {
3584
- var update = await connection.update({
3584
+ await connection.update({
3585
3585
  table: MYMODEL.table,
3586
3586
  data: data,
3587
3587
  where: {
3588
3588
  id: data.id,
3589
3589
  },
3590
3590
  })
3591
+ hd += `<td class='text text-success'>${LANGUAGE['success']}</td>`
3591
3592
  }
3592
- hd += `<td class='text text-success'>${LANGUAGE['success']}</td>`
3593
3593
  }
3594
3594
  } catch (err) {
3595
3595
  hd += `<td class='text text-danger'>${err + ''}</td>`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.2.53",
3
+ "version": "1.2.54",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"