Skip to content

Commit

Permalink
chore: tighten validation
Browse files Browse the repository at this point in the history
Co-authored-by: Tejas G. <code@gtejas.com>
  • Loading branch information
KenLSM and g-tejas authored Jun 19, 2024
1 parent 07a2d80 commit 04a6118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/modules/payments/payments.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const _handleSendOnboardingEmail: ControllerHandler<
export const handleSendOnboardingEmail = [
celebrate({
[Segments.BODY]: Joi.object({
email: Joi.string(),
email: Joi.string().email().required(),
}),
}),
_handleSendOnboardingEmail,
Expand Down

0 comments on commit 04a6118

Please sign in to comment.