notify check for new case ref tempate and pref lang

This commit is contained in:
2026-03-09 14:10:30 +00:00
parent de5ee86cde
commit 6e3f7eeec1
2 changed files with 17 additions and 27 deletions
+1 -25
View File
@@ -1969,36 +1969,12 @@ export const sendEmail = async (
"personalisation": personalisation
};
//console.log(
// "hwewwew: ",
// templateId,
// emailAddress,
// personalisation,
// reference
// );
// var queryUrl = "/api/email/notify";
// var config = {
// method: "post",
// url: queryUrl,
// data: mailData,
// };
// return axios(config)
// .then((res) => {
// //console.log("posted ", res.data);
// return res.data;
// })
// .catch((error) => {
// consoleLogger(error);
// });
try {
const response = await axios.post("/api/email/notify", mailData);
return response.data;
} catch (error) {
consoleLogger(error); // Optional custom logging
throw error; // ✅ Ensure the calling function sees the error
throw error;
}
};