Skip to content

Commit 7f00c84

Browse files
Copilotdevakesu
andauthored
Remove incorrect async/await from email template render functions (#53)
* Initial plan * Remove incorrect async/await from email render functions Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com>
1 parent 7b9271f commit 7f00c84

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib/email-templates/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ export { CourseMismatchEmail, AttendanceConflictEmail };
88
/**
99
* Render email templates to HTML strings
1010
*/
11-
export const renderCourseMismatchEmail = async (props: {
11+
export const renderCourseMismatchEmail = (props: {
1212
username: string;
1313
date: string;
1414
session: string;
1515
manualCourseName: string;
1616
courseLabel: string;
1717
dashboardUrl: string;
18-
}): Promise<string> => {
19-
return await render(CourseMismatchEmail(props) as React.ReactElement);
18+
}): string => {
19+
return render(CourseMismatchEmail(props) as React.ReactElement);
2020
};
2121

22-
export const renderAttendanceConflictEmail = async (props: {
22+
export const renderAttendanceConflictEmail = (props: {
2323
username: string;
2424
courseLabel: string;
2525
date: string;
2626
session: string;
2727
dashboardUrl: string;
28-
}): Promise<string> => {
29-
return await render(AttendanceConflictEmail(props) as React.ReactElement);
28+
}): string => {
29+
return render(AttendanceConflictEmail(props) as React.ReactElement);
3030
};

0 commit comments

Comments
 (0)