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 +7 -5
- package/package.json +1 -1
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.
|
|
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 =
|
|
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 =
|
|
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 =
|
|
1127
|
+
post.title = result.title;
|
|
1126
1128
|
post.link = link;
|
|
1127
|
-
post.url =
|
|
1129
|
+
post.url = process.env.APP_URL;
|
|
1128
1130
|
post.description = `Hai ${users[item].fullname} <br>
|
|
1129
1131
|
|
|
1130
1132
|
|