notify check for new case ref tempate and pref lang
This commit is contained in:
+1
-25
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user