zet-lib 1.5.17 → 1.5.18

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
@@ -762,7 +762,8 @@ router.post("/zzapproval", async (req, res) => {
762
762
 
763
763
  post.subject = `Need Approve ${data.title}`;
764
764
  post.buttonTitle = `Approve Now`;
765
- post.title = `NEED APPROVE DOCUMENT`;
765
+ post.caption = `NEED APPROVE DOCUMENT`;
766
+ post.title = data.title;
766
767
  post.link = link;
767
768
  post.url = process.env.APP_URL;
768
769
  post.description = `Hai ${users[post.user_id].fullname} <br>
@@ -796,7 +797,8 @@ router.post("/zzapproval", async (req, res) => {
796
797
 
797
798
  post.subject = `Need acknowledge ${data.title}`;
798
799
  post.buttonTitle = `Acknowledge Now`;
799
- post.title = `NEED ACKNOWLEDGE DOCUMENT`;
800
+ post.title = data.title
801
+ post.caption = `NEED ACKNOWLEDGE DOCUMENT`;
800
802
 
801
803
  post.link = link;
802
804
  post.url = process.env.APP_URL;
@@ -1117,14 +1119,14 @@ router.post("/za/:token", csrfProtection, async (req, res) => {
1117
1119
  table: "zapprovals_details",
1118
1120
  data: post,
1119
1121
  });
1120
- let link = CONFIG.app.url + "/za/" + post.token;
1122
+ let link = process.env.APP_URL + "/za/" + post.token;
1121
1123
  let email = users[item].username;
1122
1124
 
1123
1125
  post.subject = `Need Approve ${result.title}`;
1124
1126
  post.buttonTitle = `Approve Now`;
1125
- post.title = `NEED APPROVE DOCUMENT`;
1127
+ post.title = result.title;
1126
1128
  post.link = link;
1127
- post.url = CONFIG.app.url;
1129
+ post.url = process.env.APP_URL;
1128
1130
  post.description = `Hai ${users[item].fullname} <br>
1129
1131
 
1130
1132
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.5.17",
3
+ "version": "1.5.18",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"