-
Notifications
You must be signed in to change notification settings - Fork 1.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: health check enum #3913
feat: health check enum #3913
Conversation
const mainDataSource = this.typeORMService.getMainDataSource(); | ||
|
||
// TODO: remove special case for enum type, should we include this to fieldMetadataTypeToColumnType? |
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.
Actually fieldMetadataTypeToColumnType
is used in other places, so we can't change it.
This special case only happen here
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.
Left a comment but it's mostly for readability. LGTM!
This PR is adding some health check on enum types, the goal is to verify that
defaultValue
is matching with one of the provided options.