We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
An field error who makes the SELECT don´t be able to find the dabase data
The wrong field as a param make an SELECT error
fix id to user_id
The issue appeared to me while i´m make automated tests for this class
method: doc_methods_controller (class)
`def click_source_redirect
doc = DocMethod.find(params[:id]) sub = RepoSubscription.find_by!(id: params[:user_id], repo: doc.repo) assignment = DocAssignment.find_by!(doc_method_id: doc.id, repo_subscription_id: sub.id)
` The RepoSusbcription are find by the id, but using user_id instead of the RepoSubscription id
The text was updated successfully, but these errors were encountered:
No branches or pull requests
An field error who makes the SELECT don´t be able to find the dabase data
Expected Behavior
The wrong field as a param make an SELECT error
Possible Solution
fix id to user_id
Context
The issue appeared to me while i´m make automated tests for this class
method:
doc_methods_controller (class)
`def click_source_redirect
`
The RepoSusbcription are find by the id, but using user_id instead of the RepoSubscription id
The text was updated successfully, but these errors were encountered: