Skip to content
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

fix(subscription): Add missing validation rule for billing time #1593

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

vincent-pochet
Copy link
Collaborator

Context

A validation rule is missing for the billing_time field on the Subscription model, leading to an HTTP 500 error rather than to a 422 when a blank string is provided.

Description

This PR adds the missing presence validation

@vincent-pochet vincent-pochet added Subscription Relation to the Subscriptions 🐞 Bug Something isn't working labels Jan 11, 2024
@vincent-pochet vincent-pochet self-assigned this Jan 11, 2024
@vincent-pochet vincent-pochet merged commit 9d25817 into main Jan 11, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the fix-subscription-validation branch January 11, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working Subscription Relation to the Subscriptions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants