Skip to content

Commit 2157c9a

Browse files
committed
Add state and not our intermediate array
This was causing us to perform the incorrect query...
1 parent 0eb217d commit 2157c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/travis/api/v3/queries/jobs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def stats_by_queue(queue)
5151
def states
5252
s = []
5353
s << ACTIVE_STATES if bool(active)
54-
s << list(s) if state
54+
s << list(state) if state
5555
return '' if s.empty?
5656
s.flatten.uniq.join(',')
5757
end

0 commit comments

Comments
 (0)