-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97b57bb
commit 0c43fd7
Showing
2 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
}, | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
|