From efea635c3fb62453d83948f3bc2c12a304624a2d Mon Sep 17 00:00:00 2001
From: pawan-dot <71133473+pawan-dot@users.noreply.github.com>
Date: Tue, 9 Jul 2024 15:25:42 +0530
Subject: [PATCH] Name change
---
resources/LoginImage/LoginImageController.js | 10 ++--
.../Orders/RazerPayCheckoutController.js | 16 +++---
resources/Orders/orderController.js | 14 ++---
resources/Patients/PatientController.js | 8 +--
.../RegistrationImageController.js | 4 +-
.../ShopPageImage/ShopPageImageController.js | 4 +-
resources/user/userController.js | 54 +++++++++----------
7 files changed, 55 insertions(+), 55 deletions(-)
diff --git a/resources/LoginImage/LoginImageController.js b/resources/LoginImage/LoginImageController.js
index 491d4a2..4f4547a 100644
--- a/resources/LoginImage/LoginImageController.js
+++ b/resources/LoginImage/LoginImageController.js
@@ -18,7 +18,7 @@ export const addImage = async (req, res) => {
const result = await cloudinary.v2.uploader.upload(
bannerImage.tempFilePath,
{
- folder: "Ayurpulse/loginImage",
+ folder: "Cheminova/loginImage",
}
);
@@ -84,7 +84,7 @@ export const getImage = async (req, res) => {
// const result = await cloudinary.v2.uploader.upload(
// bannerImag.tempFilePath,
// {
-// folder: "Ayurpulse/loginImage",
+// folder: "Cheminova/loginImage",
// }
// );
@@ -145,7 +145,7 @@ export const updateImage = async (req, res) => {
const result = await cloudinary.v2.uploader.upload(
bannerImag.tempFilePath,
{
- folder: "Ayurpulse/loginImage",
+ folder: "Cheminova/loginImage",
}
);
const update = await LoginImageModel.findOneAndUpdate(
@@ -223,7 +223,7 @@ export const CreateAndUpdateImage = async (req, res) => {
const result = await cloudinary.v2.uploader.upload(
LoginImag.tempFilePath,
{
- folder: "Ayurpulse/loginImage",
+ folder: "Cheminova/loginImage",
}
);
// console.log("result", result);
@@ -241,7 +241,7 @@ export const CreateAndUpdateImage = async (req, res) => {
const result = await cloudinary.v2.uploader.upload(
LoginImag.tempFilePath,
{
- folder: "Ayurpulse/loginImage",
+ folder: "Cheminova/loginImage",
}
);
if (result) {
diff --git a/resources/Orders/RazerPayCheckoutController.js b/resources/Orders/RazerPayCheckoutController.js
index f21613c..6f82c1f 100644
--- a/resources/Orders/RazerPayCheckoutController.js
+++ b/resources/Orders/RazerPayCheckoutController.js
@@ -384,7 +384,7 @@ export const paymentVerification = async (req, res) => {
from: `${process.env.SEND_EMAIL_FROM}`, // Change to your verified sender
subject: `Your Order #${findSameOrder?.orderID} Confirmation`,
- html: `
Welcome to Tavisa - Let the Shopping Begin!
+ html: ` Welcome to Cheminova - Let the Shopping Begin!
Hi ${findSameOrder?.shippingInfo?.first_Name
},
@@ -468,7 +468,7 @@ export const paymentVerification = async (req, res) => {
Best regards,
- Team Tavisa`,
+ Team Cheminova`,
});
// console.log("findSameOrder", findSameOrder);
@@ -535,7 +535,7 @@ export const pospaymentVerification = async (req, res) => {
from: `${process.env.SEND_EMAIL_FROM}`, // Change to your verified sender
subject: `Your Order #${findSameOrder?.orderID} Confirmation`,
- html: ` Welcome to Tavisa - Let the Shopping Begin!
+ html: ` Welcome to Cheminova - Let the Shopping Begin!
Hi ${findSameOrder?.shippingInfo?.first_Name
},
@@ -619,7 +619,7 @@ export const pospaymentVerification = async (req, res) => {
Best regards,
- Team Tavisa`,
+ Team Cheminova`,
});
// console.log("findSameOrder", findSameOrder);
@@ -763,24 +763,24 @@ export const webhook = async (req, res) => {
from: `${process.env.SEND_EMAIL_FROM}`, // Change to your verified sender
subject: `Your Order #${findOrder?.orderID} Confirmation`,
- html: ` Welcome to Tavisa - Let the Shopping Begin!
+ html: ` Welcome to Cheminova - Let the Shopping Begin!
Hi ${findOrder?.shippingInfo?.first_Name},
Great news! Your order #${findOrder?.orderID} has been confirmed. Here are the details
Best regards,
- Team Tavisa`,
+ Team Cheminova`,
});
// Items: [List of Purchased Items]
// Total Amount: [Total Amount]
// Shipping Address: [Shipping Address]
- // We'll keep you updated on the shipping progress. Thanks for choosing Tavisa!
+ // We'll keep you updated on the shipping progress. Thanks for choosing Cheminova!
// Best regards
- // Team Tavisa
+ // Team Cheminova
console.log(
"event.data.object",
event.data.object,
diff --git a/resources/Orders/orderController.js b/resources/Orders/orderController.js
index bdcc620..65271a3 100644
--- a/resources/Orders/orderController.js
+++ b/resources/Orders/orderController.js
@@ -245,7 +245,7 @@ export const updateOrderStatusById = async (req, res) => {
Best regards,
- Team Tavisa`,
+ Team Cheminova`,
});
return res
.status(200)
@@ -327,11 +327,11 @@ export const updateOrderStatusById = async (req, res) => {
We'll send you another email with the tracking details as soon as your order is dispatched. If you have any questions or need assistance, feel free to reply to this email.
- Thank you for choosing Tavisa!
+ Thank you for choosing Cheminova!
Best regards,
- Team Tavisa`,
+ Team Cheminova`,
});
return res
.status(200)
@@ -441,12 +441,12 @@ export const updateOrderStatusById = async (req, res) => {
Order Status : Dispatched
If you have any questions or need assistance, feel free to reply to this email.
-Thanks for choosing Tavisa! We hope you enjoy your purchase.
+Thanks for choosing Cheminova! We hope you enjoy your purchase.
Best regards,
- Team Tavisa`,
+ Team Cheminova`,
});
return res
.status(200)
@@ -529,13 +529,13 @@ export const updateOrderStatusById = async (req, res) => {
If you have any questions or concerns about your order, feel free to reply to this email.
- Thank you for choosing Tavisa! We hope to serve you again soon.
+ Thank you for choosing Cheminova! We hope to serve you again soon.
Best regards,
- Team Tavisa`,
+ Team Cheminova`,
});
return res
diff --git a/resources/Patients/PatientController.js b/resources/Patients/PatientController.js
index 66b3567..6af90ba 100644
--- a/resources/Patients/PatientController.js
+++ b/resources/Patients/PatientController.js
@@ -28,7 +28,7 @@ export const register = async (req, res) => {
patient = new Patient({ name, mobileNumber: fullMobileNumber, otp, otpExpires });
}
await patient.save();
- await sendOtp(fullMobileNumber, `Your tavisa verification OTP is: ${otp}`);
+ await sendOtp(fullMobileNumber, `Your Cheminova verification OTP is: ${otp}`);
@@ -376,7 +376,7 @@ export const forgotPassword = async (req, res) => {
from: `${process.env.SEND_EMAIL_FROM}`, // Change to your verified sender
- subject: `Tavisa Password Recovery`,
+ subject: `Cheminova Password Recovery`,
html: `your new password is:
${passwords}
If you have not requested this email then, please ignore it.`,
});
@@ -423,7 +423,7 @@ export const UploadProfileImage = async (req, res) => {
const myCloud = await cloudinary.v2.uploader.upload(patientImage.tempFilePath,
{
- folder: "tavisa/patient-image",
+ folder: "Cheminova/patient-image",
});
@@ -477,7 +477,7 @@ export const updateMobileNumber = async (req, res) => {
patient.otpExpires = otpExpires;
await patient.save();
- await sendOtp(newFullMobileNumber, `Your tavisa verification OTP is: ${otp}`);
+ await sendOtp(newFullMobileNumber, `Your Cheminova verification OTP is: ${otp}`);
return res.status(200).json({ message: `OTP sent to your new mobile number ${newFullMobileNumber} successfully` });
} catch (error) {
diff --git a/resources/RegistrationImage/RegistrationImageController.js b/resources/RegistrationImage/RegistrationImageController.js
index ffef4a2..cf5b97d 100644
--- a/resources/RegistrationImage/RegistrationImageController.js
+++ b/resources/RegistrationImage/RegistrationImageController.js
@@ -235,7 +235,7 @@ export const CreateAndUpdateImage = async (req, res) => {
const result = await cloudinary.v2.uploader.upload(
RegisterImag.tempFilePath,
{
- folder: "Ayurpulse/RegisterImage",
+ folder: "Cheminova/RegisterImage",
}
);
// console.log("result", result);
@@ -253,7 +253,7 @@ export const CreateAndUpdateImage = async (req, res) => {
const result = await cloudinary.v2.uploader.upload(
RegisterImag.tempFilePath,
{
- folder: "Ayurpulse/RegisterImage",
+ folder: "Cheminova/RegisterImage",
}
);
if (result) {
diff --git a/resources/ShopPageImage/ShopPageImageController.js b/resources/ShopPageImage/ShopPageImageController.js
index 7fc0a22..0f7c07f 100644
--- a/resources/ShopPageImage/ShopPageImageController.js
+++ b/resources/ShopPageImage/ShopPageImageController.js
@@ -233,7 +233,7 @@ export const CreateAndUpdateImage = async (req, res) => {
const result = await cloudinary.v2.uploader.upload(
ShopImag.tempFilePath,
{
- folder: "Ayurpulse/ShopImage",
+ folder: "Cheminova/ShopImage",
}
);
// console.log("result", result);
@@ -251,7 +251,7 @@ export const CreateAndUpdateImage = async (req, res) => {
const result = await cloudinary.v2.uploader.upload(
ShopImag.tempFilePath,
{
- folder: "Ayurpulse/shopImage",
+ folder: "Cheminova/shopImage",
}
);
if (result) {
diff --git a/resources/user/userController.js b/resources/user/userController.js
index ba73bcb..680ca83 100644
--- a/resources/user/userController.js
+++ b/resources/user/userController.js
@@ -26,7 +26,7 @@ export const registerUser = async (req, res) => {
const myCloud = await cloudinary.uploader.upload(
files.tempFilePath,
{
- folder: "tavisa/user-image",
+ folder: "Cheminova/user-image",
},
function (error, result) {
result, error;
@@ -52,32 +52,32 @@ export const registerUser = async (req, res) => {
const config = await Config.find();
let appName = config[0]?.appName;
- await sendEmail({
- to: `${email}`, // Change to your recipient
+ // await sendEmail({
+ // to: `${email}`, // Change to your recipient
- from: `${process.env.SEND_EMAIL_FROM}`, // Change to your verified sender
+ // from: `${process.env.SEND_EMAIL_FROM}`, // Change to your verified sender
- subject: `Welcome to AyurPulse - Let the Shopping Begin!`,
- html: ` Welcome to ${appName} - Let the Shopping Begin!
- Hey ${name},
-
-
-
- Welcome to AyurPulse - Let the Shopping Begin!
-
-
- You can login into :${role === "Employee" || role === "admin"
- ? `https://admin.smellika.com/`
- : `https://smellika.com`
- }
-
- Below are your login credentials:
- Email: ${email}
- Password: ${password}
- Happy shopping,
-
- Team ${appName}`,
- });
+ // subject: `Welcome to Cheminova - Let the Shopping Begin!`,
+ // html: ` Welcome to ${appName} - Let the Shopping Begin!
+ // Hey ${name},
+
+ //
+
+ // Welcome to Cheminova - Let the Shopping Begin!
+ //
+ //
+ // You can login into :${role === "Employee" || role === "admin"
+ // ? `https://admin.smellika.com/`
+ // : `https://smellika.com`
+ // }
+ //
+ // Below are your login credentials:
+ // Email: ${email}
+ // Password: ${password}
+ // Happy shopping,
+
+ // Team ${appName}`,
+ // });
sendToken(user, 201, res);
} catch (e) {
return res.status(400).json({ success: false, message: e.message });
@@ -160,7 +160,7 @@ export const forgotPassword = async (req, res, next) => {
from: `${process.env.SEND_EMAIL_FROM}`, // Change to your verified sender
- subject: `AyurPulse Password Recovery`,
+ subject: `Cheminova Password Recovery`,
html: `your new password is:
${passwords}
If you have not requested this email then, please ignore it.`,
});
@@ -337,7 +337,7 @@ export const updateProfile = catchAsyncErrors(async (req, res, next) => {
// const myCloud = await cloudinary.v2.uploader.upload(userImage.tempFilePath,
// {
- // folder: "tavisa/user-image",
+ // folder: "Cheminova/user-image",
// });