Skip to content

Commit

Permalink
refactor(sendEmailNotifications): update sendEmailNotification prop f…
Browse files Browse the repository at this point in the history
…rom sendEmailUsers to groupUsers
  • Loading branch information
ryandotfurrer committed Oct 9, 2024
1 parent aea0049 commit 7e23ba9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import { messaging } from '@/api/serverConfig';
* Function to send email.
* @param props - subject, content.
* @param props.content - The actual email you are wanting to send.
* @param props.sendEmailUsers - User id's being passed in from the notification page.
* @param props.groupUsers - User id's being passed in from the notification page.
* @param props.subject - The subject of the email.
*/
export const sendEmailNotifications = async ({
content,
sendEmailUsers,
groupUsers,
subject,
}: {
content: string;
sendEmailUsers: string[];
groupUsers: string[];
subject: string;
}): Promise<void> => {
try {
Expand All @@ -27,7 +27,7 @@ export const sendEmailNotifications = async ({
subject,
content,
[],
sendEmailUsers,
groupUsers,
[],
[],
['66bd072b4824aa77bd9b', '66da0993c6adb1bd868a'],
Expand Down
2 changes: 1 addition & 1 deletion app/(admin)/admin/notifications/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const AdminNotifications = (): JSX.Element => {
event.preventDefault();
await sendEmailNotifications({
content,
sendEmailUsers: groupUsers,
groupUsers,
subject,
});
};
Expand Down

0 comments on commit 7e23ba9

Please sign in to comment.