zet-lib 1.0.40 → 1.0.41

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/debug.js CHANGED
@@ -7,10 +7,10 @@ const connection = require("./connection");
7
7
  module.exports = (req, res, err) => {
8
8
  let post = {
9
9
  table: res.locals.routeName || "",
10
- company_id: res.locals.companyId,
10
+ company_id: res.locals.companyId || 1,
11
11
  route: res.locals.routeName || "",
12
12
  description : err.toString(),
13
- created_by : res.locals.userId
13
+ created_by : res.locals.userId || 1
14
14
  };
15
15
  connection.insert({
16
16
  table : "zerror",
package/lib/zRoute.js CHANGED
@@ -1002,7 +1002,6 @@ zRoute.loginAjax = async (username, password, req, res, isSocialLogin, url = "")
1002
1002
  }
1003
1003
  } catch (err) {
1004
1004
  debug(req, res, err);
1005
- res.json("Error : " + err.toString());
1006
1005
  }
1007
1006
  return data;
1008
1007
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"