status get param for report
This commit is contained in:
parent
d24a0ae927
commit
3c3f1b1fea
@ -11,7 +11,7 @@ class ReportRoutes < Sinatra::Base
|
||||
|
||||
get "/all" do
|
||||
options = {}
|
||||
["project", "deploy_env", "type", "created_by", "date_from", "date_to", "sort"].each do |k|
|
||||
["project", "deploy_env", "type", "created_by", "date_from", "date_to", "sort", "status"].each do |k|
|
||||
options[k] = params[k] unless params[k].nil?
|
||||
end
|
||||
json DevopsService.mongo.reports(options).map{|r| r.to_hash}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user