Skip to content

Commit

Permalink
Removing try and catch in my function
Browse files Browse the repository at this point in the history
Using the erro handles
  • Loading branch information
bertrandshema committed May 24, 2024
1 parent d8f1ea4 commit 8faa25b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/userController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export const Login = errorHandler(async (req: Request, res: Response) => {
{ expiresIn: '1d' }
);


const confirmLink = `${process.env.APP_URL}/api/v1/confirm?token=${token}`;
if (process.env.NODE_ENV !== 'test'){
await sendEmail('confirm', user.email, {
Expand Down

0 comments on commit 8faa25b

Please sign in to comment.