-
Notifications
You must be signed in to change notification settings - Fork 32
feat: added enum completion #96
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
Conversation
|
Oh no, should I have included the package.json in my pull request? |
| const enumValues = enumSchema.find((tempEnum) => { | ||
| if (column) { | ||
| // normally column will be enum | ||
| return tempEnum.column === column.replaceAll('`', ''); |
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.
It would be expensive to repeating replaceAll which can just do it one time at the top.
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.
How did I not think of this? 😱
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.
I have moved replaceAll higher up
|
I have changed the code as per your suggestion. |
|
Kudos, SonarCloud Quality Gate passed!
|








Please review carefully, Im not sure where to put helper functions and types. I wanted to break the function into smaller functions, so that it would be easier to read.