zet-lib 1.2.77 → 1.2.78

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/zAppRouter.js CHANGED
@@ -1388,6 +1388,12 @@ router.post('/zapproval-update/:table', async (req, res) => {
1388
1388
  approval_status: value,
1389
1389
  approval_history: Util.array_to_jsonb(approval_history),
1390
1390
  }
1391
+ if(+value >1 && +value <22) {
1392
+ mydata.lock=1
1393
+ }
1394
+ if((+value === 22)) {
1395
+ mydata.lock=0
1396
+ }
1391
1397
  await connection.update({
1392
1398
  table: table,
1393
1399
  where: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.2.77",
3
+ "version": "1.2.78",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"