changes
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user