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: exit early if query variable is a parameter #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sekhmet
Copy link

@Sekhmet Sekhmet commented Mar 30, 2022

For parameters we shouldn't check for .init as it won't be defined.
Currently using knex.raw inside of function or arrow function will crash eslint if query came from parameter.

This PR fixes this issue.

For parameters we shouldn't check for `.init` as it isn't defined.
Currently using knex.raw inside of function or arrow function
will crash eslint if query came from parameter.
Copy link

@mvayngrib mvayngrib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants