implemented initial eslintFixes

This commit is contained in:
PxlLoewe
2025-07-09 01:06:54 -07:00
parent f793f2623b
commit 98ed0cb5ca
20 changed files with 309 additions and 111 deletions

View File

@@ -19,7 +19,7 @@ export const sendMailByTemplate = async (
| "email-verification"
| "ban-notice"
| "timeban-notice",
data: any,
data: unknown,
) => {
try {
await fetch(`${process.env.NEXT_PUBLIC_HUB_SERVER_URL}/mail/template/${template}`, {

View File

@@ -25,7 +25,7 @@ export const enrollUserInCourse = async (courseid: number | string, userid: numb
);
return enrollmentResponse;
} catch (error) {
return new Error("Failed to enroll user in course");
return error;
}
};