Merge branch 'bug_fix' of /home/git/repositories/cloudtechlab/devops-service into qa

This commit is contained in:
Tim Lianov 2015-10-27 16:23:47 +04:00
commit f10a496d9c
2 changed files with 3 additions and 1 deletions

View File

@ -36,7 +36,8 @@ module Devops
# ]
app.get_with_headers "/projects", :headers => [:accept] do
check_privileges("project", "r")
json Devops::API2_0::Handler::Project.new(request).projects.map(&:to_hash_list)
projects = Devops::API2_0::Handler::Project.new(request).projects
json projects.map(&:to_hash)
end
# Get project by id

View File

@ -35,6 +35,7 @@ module Connectors
else
query["archived"] = {"$exists" => false}
end
fields << '_id'
list(query, fields: fields)
end