From e8e53be6a977108a4a7f28761468c2d880544253 Mon Sep 17 00:00:00 2001 From: wielopolski Date: Mon, 4 Nov 2024 14:36:43 +0100 Subject: [PATCH] feat: update ses config --- apps/api/src/auth/auth.service.ts | 2 +- apps/api/src/common/configuration/email.ts | 4 ++-- apps/api/src/common/configuration/jwt.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/api/src/auth/auth.service.ts b/apps/api/src/auth/auth.service.ts index 2325fbcbb..e5bc8063d 100644 --- a/apps/api/src/auth/auth.service.ts +++ b/apps/api/src/auth/auth.service.ts @@ -82,7 +82,7 @@ export class AuthService { subject: "Welcome to our platform", text: emailTemplate.text, html: emailTemplate.html, - from: "godfather@selleo.com", + from: "noreply@lms.selleo.app", }); return newUser; diff --git a/apps/api/src/common/configuration/email.ts b/apps/api/src/common/configuration/email.ts index c6b1facb3..5ffb252c2 100644 --- a/apps/api/src/common/configuration/email.ts +++ b/apps/api/src/common/configuration/email.ts @@ -16,7 +16,7 @@ const schema = Type.Object({ export type EmailConfigSchema = Static; -const valdateEmailConfig = configValidator(schema); +const validateEmailConfig = configValidator(schema); export default registerAs("email", (): EmailConfigSchema => { const values = { @@ -27,5 +27,5 @@ export default registerAs("email", (): EmailConfigSchema => { EMAIL_ADAPTER: process.env.EMAIL_ADAPTER, }; - return valdateEmailConfig(values); + return validateEmailConfig(values); }); diff --git a/apps/api/src/common/configuration/jwt.ts b/apps/api/src/common/configuration/jwt.ts index 65da10fc8..528c5b4d3 100644 --- a/apps/api/src/common/configuration/jwt.ts +++ b/apps/api/src/common/configuration/jwt.ts @@ -10,7 +10,7 @@ const schema = Type.Object({ type JWTConfig = Static; -const valdateJWTConfig = configValidator(schema); +const validateJWTConfig = configValidator(schema); export default registerAs("jwt", (): JWTConfig => { const values = { @@ -19,5 +19,5 @@ export default registerAs("jwt", (): JWTConfig => { expirationTime: process.env.JWT_EXPIRATION_TIME, }; - return valdateJWTConfig(values); + return validateJWTConfig(values); });