diff --git a/apps/api/src/app/controllers/auth.controller.ts b/apps/api/src/app/controllers/auth.controller.ts index 089bae8a..130e119a 100644 --- a/apps/api/src/app/controllers/auth.controller.ts +++ b/apps/api/src/app/controllers/auth.controller.ts @@ -739,9 +739,7 @@ const verifyEmailViaLink = createRoute(routeDefinition.verification.validators, const { code } = query; - const pendingVerification = req.session.pendingVerification.find(({ type }) => { - type === 'email'; - }); + const pendingVerification = req.session.pendingVerification.find(({ type }) => type === 'email'); if (!pendingVerification) { throw new InvalidSession('Missing pending verification');