summaryrefslogtreecommitdiff
path: root/lib/api/issues.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-11-25 12:17:23 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2016-11-25 12:17:23 +0000
commit838c1aad68e8c7f81a0b8778f46f0ce4e7c5439d (patch)
treeb8ca9fabfb7e7dfedccb75896bb87ba6e5a57177 /lib/api/issues.rb
parentafe90d529c82566886d1f2513dd6bee4fa73ff94 (diff)
parent81ba3f9177fcfd76f6b3b715c572ce4920398345 (diff)
downloadgitlab-ce-838c1aad68e8c7f81a0b8778f46f0ce4e7c5439d.tar.gz
Merge branch '22373-reduce-queries-in-api-helpers-find_project' into 'master'
Resolve "Reduce queries in API::Helpers#find_project" See merge request !7714
Diffstat (limited to 'lib/api/issues.rb')
-rw-r--r--lib/api/issues.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/issues.rb b/lib/api/issues.rb
index eea5b91d4f9..2fea71870b8 100644
--- a/lib/api/issues.rb
+++ b/lib/api/issues.rb
@@ -68,7 +68,7 @@ module API
# GET /groups/:id/issues?milestone=1.0.0
# GET /groups/:id/issues?milestone=1.0.0&state=closed
get ":id/issues" do
- group = find_group(params[:id])
+ group = find_group!(params[:id])
params[:state] ||= 'opened'
params[:group_id] = group.id