-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api): add enable type validation #5603
feat(api): add enable type validation #5603
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added missing validation on our dto.
@@ -31,7 +31,7 @@ describe('Update Subscribers preferences - /subscribers/:subscriberId/preference | |||
|
|||
try { | |||
const response = await updatePreference(updateDataEmailFalse as any, session, template._id); | |||
expect(response).to.not.be; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we were missing the 'ok' in order test in order to trigger failure if the test is falsely passed.
@@ -9,6 +10,8 @@ export class UpdateSubscriberPreferenceRequestDto { | |||
description: 'The subscriber preferences for every ChannelTypeEnum for the workflow assigned.', | |||
}) | |||
@ValidateNested() | |||
@Type(() => ChannelPreference) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed in order to execute @ValidateNested()
✅ Deploy Preview for dev-web-novu ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for novu-design ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤩
…-value-type-string-at-path
What changed? Why was the change needed?
Fix - CastError: Cast to Boolean failed for value "" (type string) at path "channels.sms" because of "CastError"
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer