From 028b91ffc37480f202e3a03c5e9a17f5f5dc4ba7 Mon Sep 17 00:00:00 2001 From: Gitea Date: Tue, 19 May 2026 00:15:36 +0530 Subject: [PATCH] changes --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 0ce3a4b..5062428 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ app.post("/send-notification", async (req, res) => { try { - const { token, title, body, logo, MediaType, TargetScreen } = req.body; + const { token, title, body, logo, MediaType, TargetScreen,projectCode,empCode } = req.body; let message = {}; @@ -33,6 +33,8 @@ app.post("/send-notification", async (req, res) => { body: body, temp_source: "text", route: TargetScreen, + projectCode: projectCode, + empCode: empCode, }, token: token, }; @@ -52,6 +54,8 @@ app.post("/send-notification", async (req, res) => { body: body, temp_source: "image", route: TargetScreen, + projectCode: projectCode, + empCode: empCode, }, android: { notification: {