task push notification
This commit is contained in:
parent
2d8642e991
commit
76bd4c2c22
BIN
public/temp/tmp-1-1725337456945
Normal file
BIN
public/temp/tmp-1-1725337456945
Normal file
Binary file not shown.
BIN
public/temp/tmp-2-1725337492515
Normal file
BIN
public/temp/tmp-2-1725337492515
Normal file
Binary file not shown.
BIN
public/temp/tmp-3-1725337576243
Normal file
BIN
public/temp/tmp-3-1725337576243
Normal file
Binary file not shown.
@ -253,14 +253,14 @@ export const updateTaskStatus = async (req, res) => {
|
|||||||
task.taskStatus = "Completed";
|
task.taskStatus = "Completed";
|
||||||
await task.save();
|
await task.save();
|
||||||
// Fetch the Sales Coordinator who completed the task
|
// Fetch the Sales Coordinator who completed the task
|
||||||
const salesCoordinator = await SalesCoOrdinator.findById(req.user._id);
|
// const salesCoordinator = await SalesCoOrdinator.findById(req.user._id);
|
||||||
|
|
||||||
if (!salesCoordinator) {
|
// if (!salesCoordinator) {
|
||||||
return res.status(404).json({
|
// return res.status(404).json({
|
||||||
success: false,
|
// success: false,
|
||||||
message: "Sales Coordinator not found.",
|
// message: "Sales Coordinator not found.",
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Fetch the FCM token of the Territory Manager
|
// Fetch the FCM token of the Territory Manager
|
||||||
// const territoryManager = await TerritoryManager.findById(task.taskAssignedBy);
|
// const territoryManager = await TerritoryManager.findById(task.taskAssignedBy);
|
||||||
|
Loading…
Reference in New Issue
Block a user