From 29eacdc292440f8e091a2031cc1a5d3c9d65e41c Mon Sep 17 00:00:00 2001 From: Daisy Kucharski Date: Thu, 19 Oct 2023 19:34:21 -0400 Subject: [PATCH] uncomment check for env --- packages/api-v2/src/auth/auth.controller.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/api-v2/src/auth/auth.controller.ts b/packages/api-v2/src/auth/auth.controller.ts index 93fbdc123..fbc8f6825 100644 --- a/packages/api-v2/src/auth/auth.controller.ts +++ b/packages/api-v2/src/auth/auth.controller.ts @@ -66,11 +66,11 @@ export class AuthController { sameSite: "strict", secure: isSecure, }); - // if (process.env.NODE_ENV !== "testing") { - await this.emailConfirmationService.sendVerificationLink( - createStudentDto.email - ); - // } + if (process.env.NODE_ENV !== "testing") { + await this.emailConfirmationService.sendVerificationLink( + createStudentDto.email + ); + } return student; }