coursePanel dropdown, 6 emails per subject
This commit is contained in:
@@ -151,9 +151,9 @@ export const updateCourseStatus = async (courseId) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const sendEmail = async (formData) => {
|
||||
export const sendEmail = async (formData, type) => {
|
||||
try {
|
||||
const url = `${BASE_URL}/send-email`;
|
||||
const url = `${BASE_URL}/send-email/${type}`;
|
||||
const response = await fetch(url, {
|
||||
method: "POST",
|
||||
body: formData, // Directly pass FormData
|
||||
|
||||
Reference in New Issue
Block a user