Skip to content

Commit

Permalink
Fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-Papa committed Oct 15, 2024
1 parent 97b57bb commit 0c43fd7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
30 changes: 15 additions & 15 deletions backend/src/pages/api/user/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ export default APIWrapper({
if (!user) {
throw new Error("Failed to create user!");
}
// if (process.env.NODE_ENV === "production") {
// await sendEmail(
// "[email protected]",
// EmailSubject.ACCOUNT_CREATED,
// EmailTemplate.ACCOUNT_CREATED,
// emailData
// );
// } else {
// await sendEmail(
// "[email protected]",
// EmailSubject.ACCOUNT_CREATED,
// EmailTemplate.ACCOUNT_CREATED,
// emailData
// );
// }
// if (process.env.NODE_ENV === "production") {
// await sendEmail(
// "[email protected]",
// EmailSubject.ACCOUNT_CREATED,
// EmailTemplate.ACCOUNT_CREATED,
// emailData
// );
// } else {
// await sendEmail(
// "[email protected]",
// EmailSubject.ACCOUNT_CREATED,
// EmailTemplate.ACCOUNT_CREATED,
// emailData
// );
// }
return user;
},
},
Expand Down
24 changes: 12 additions & 12 deletions mobile/screens/Onboarding/HandlerInformationScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ export default function HandlerInformationScreen(props: any) {
default: "Failed to Update Handler Information",
},
});
// const emailData = {
// email: (user as User).email,
// firstName: firstName,
// lastName: lastName,
// address: address,
// }
// await sendEmail(
// "[email protected]",
// EmailSubject.ACCOUNT_CREATED,
// EmailTemplate.ACCOUNT_CREATED,
// emailData
// );
const emailData = {
email: (user as User).email,
firstName: firstName,
lastName: lastName,
address: address,
}
await sendEmail(
"[email protected]",
EmailSubject.ACCOUNT_CREATED,
EmailTemplate.ACCOUNT_CREATED,
emailData
);
return user;
} catch (e) {
endOfExecutionHandler(e as Error);
Expand Down

0 comments on commit 0c43fd7

Please sign in to comment.