zet-lib 1.4.14 → 1.4.15

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 +3 -1
  2. package/package.json +1 -1
package/lib/zRoute.js CHANGED
@@ -4846,7 +4846,9 @@ zRoute.updateSQL = async (req, res, table, data, whereData) => {
4846
4846
  if (!Util.fileExist(path_dest + item)) {
4847
4847
  let newItem = time + item;
4848
4848
  newArr.push(newItem);
4849
- fs.rename(path_src + item, path_dest + newItem);
4849
+ if (Util.fileExist(path_src + item)) {
4850
+ fs.rename(path_src + item, path_dest + newItem);
4851
+ }
4850
4852
  } else {
4851
4853
  newArr.push(item);
4852
4854
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.4.14",
3
+ "version": "1.4.15",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"