From e2527de9767c9df3542ab6b67c8e8a5c1b5b2104 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Mon, 5 Dec 2022 18:09:18 +0100 Subject: [PATCH] refactor: remove type email --- backend/src/email/email.service.ts | 2 +- frontend/src/components/admin/showCreateUserModal.tsx | 1 - frontend/src/components/admin/showUpdateUserModal.tsx | 1 - frontend/src/components/auth/SignInForm.tsx | 1 - frontend/src/components/auth/SignUpForm.tsx | 1 - frontend/src/pages/account/index.tsx | 1 - 6 files changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/src/email/email.service.ts b/backend/src/email/email.service.ts index 9231a9c3..296caed5 100644 --- a/backend/src/email/email.service.ts +++ b/backend/src/email/email.service.ts @@ -19,7 +19,7 @@ export class EmailService { }, }); - if (!this.config.get("emailRecepientsEnabled")) + if (!this.config.get("ENABLE_EMAIL_RECIPIENTS")) throw new InternalServerErrorException("Email service disabled"); const shareUrl = `${this.config.get("APP_URL")}/share/${shareId}`; diff --git a/frontend/src/components/admin/showCreateUserModal.tsx b/frontend/src/components/admin/showCreateUserModal.tsx index 1b34c3a3..f7732fd4 100644 --- a/frontend/src/components/admin/showCreateUserModal.tsx +++ b/frontend/src/components/admin/showCreateUserModal.tsx @@ -63,7 +63,6 @@ const Body = ({ diff --git a/frontend/src/components/admin/showUpdateUserModal.tsx b/frontend/src/components/admin/showUpdateUserModal.tsx index 6ab363ed..7bda6db2 100644 --- a/frontend/src/components/admin/showUpdateUserModal.tsx +++ b/frontend/src/components/admin/showUpdateUserModal.tsx @@ -80,7 +80,6 @@ const Body = ({ {...accountForm.getInputProps("username")} /> diff --git a/frontend/src/components/auth/SignInForm.tsx b/frontend/src/components/auth/SignInForm.tsx index 47ed0e53..1857f28f 100644 --- a/frontend/src/components/auth/SignInForm.tsx +++ b/frontend/src/components/auth/SignInForm.tsx @@ -65,7 +65,6 @@ const SignInForm = () => { > diff --git a/frontend/src/components/auth/SignUpForm.tsx b/frontend/src/components/auth/SignUpForm.tsx index 5c5ed399..a634ccc1 100644 --- a/frontend/src/components/auth/SignUpForm.tsx +++ b/frontend/src/components/auth/SignUpForm.tsx @@ -78,7 +78,6 @@ const SignUpForm = () => { /> { {...accountForm.getInputProps("username")} />