From c2dd460c149110b50c4ab8ebe8db50fe7efdec8e Mon Sep 17 00:00:00 2001 From: esteban-gs <26440947+esteban-gs@users.noreply.github.com> Date: Tue, 14 Nov 2023 22:08:40 -0800 Subject: [PATCH] Only send reset password email in staging --- server/src/acccount-manager/account-manager.controller.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/acccount-manager/account-manager.controller.ts b/server/src/acccount-manager/account-manager.controller.ts index d6b8d9f1..42df57d9 100644 --- a/server/src/acccount-manager/account-manager.controller.ts +++ b/server/src/acccount-manager/account-manager.controller.ts @@ -183,8 +183,9 @@ export class AccountManagerController {
The Givingful Team
`, }; - - await this.sendgridService.send(mail); + if (process.env.NODE_ENV === 'staging') { + await this.sendgridService.send(mail); + } response.status(200); } catch (e) { // always respond 200 so hackerz don't know which emails are active and not