Skip to content

Commit

Permalink
chore: update emailer error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-dane committed Dec 27, 2024
1 parent 34c1896 commit c10105f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/common/constants/error.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const DbError = {
export const EmailerError = {
IncorrectApiKey: {
description:
"Incorrect API key. Please make sure environment variables beginning with EMAILER_ are set correctly",
"Incorrect API key. Please make sure environment variables beginning with EMAILER_ are correct",
status: Status.BAD_REQUEST,
isOperational: true,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/user/services/email.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class EmailService {
addToEmailList = async (email: string, firstName: string) => {
if (!ENV.EMAILER_LIST_ID && !ENV.EMAILER_SECRET) {
logger.warn(
"Email service is disabled. Required environment variables are missing."
"Skipped adding email to list, because EMAILER_ environment variables are missing."
);
return;
}
Expand Down

0 comments on commit c10105f

Please sign in to comment.