Skip to content

Commit

Permalink
feat: update ses config
Browse files Browse the repository at this point in the history
  • Loading branch information
wielopolski committed Nov 4, 2024
1 parent 34cc54b commit e8e53be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/common/configuration/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const schema = Type.Object({

export type EmailConfigSchema = Static<typeof schema>;

const valdateEmailConfig = configValidator(schema);
const validateEmailConfig = configValidator(schema);

export default registerAs("email", (): EmailConfigSchema => {
const values = {
Expand All @@ -27,5 +27,5 @@ export default registerAs("email", (): EmailConfigSchema => {
EMAIL_ADAPTER: process.env.EMAIL_ADAPTER,
};

return valdateEmailConfig(values);
return validateEmailConfig(values);
});
4 changes: 2 additions & 2 deletions apps/api/src/common/configuration/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const schema = Type.Object({

type JWTConfig = Static<typeof schema>;

const valdateJWTConfig = configValidator(schema);
const validateJWTConfig = configValidator(schema);

export default registerAs("jwt", (): JWTConfig => {
const values = {
Expand All @@ -19,5 +19,5 @@ export default registerAs("jwt", (): JWTConfig => {
expirationTime: process.env.JWT_EXPIRATION_TIME,
};

return valdateJWTConfig(values);
return validateJWTConfig(values);
});

0 comments on commit e8e53be

Please sign in to comment.