Skip to content

Commit

Permalink
fix: bug in from address validation
Browse files Browse the repository at this point in the history
  • Loading branch information
KishenKumarrrrr committed Aug 8, 2024
1 parent 5fe2ad2 commit 5871c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/email/middlewares/email.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export const InitEmailMiddleware = (
if (
// user enters an email that is neither their own nor [email protected]
fromAddress !== userEmail &&
allowedDefaultAddresses.includes(fromAddress)
!allowedDefaultAddresses.includes(fromAddress)
) {
logger.error({
message: INVALID_FROM_ADDRESS_ERROR_MESSAGE,
Expand Down

0 comments on commit 5871c7c

Please sign in to comment.