We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aa8f4c commit 0eb217dCopy full SHA for 0eb217d
lib/travis/api/v3/queries/jobs.rb
@@ -34,7 +34,7 @@ def for_owner(relation)
34
35
def for_user(user)
36
set_custom_timeout(host_timeout)
37
- jobs = V3::Models::Job.where("jobs.id in (select id from most_recent_job_ids_for_user_repositories_by_states(#{user.id}, '#{states}'))")
+ jobs = V3::Models::Job.where("jobs.id in (select id from most_recent_job_ids_for_user_repositories_by_states(#{user.id}, ?))", states)
38
39
sort filter(jobs)
40
end
0 commit comments