summaryrefslogtreecommitdiff
path: root/apps/chttpd
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-08-18 14:09:22 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-18 14:24:57 -0400
commit1b40244642f1099df7b7addecf2ac47e52b8d636 (patch)
treef28263ebad3d0d7291dd66c41f3459aef732902f /apps/chttpd
parent7393d62b7b630bee50f609d0ae8125d33f7cda2b (diff)
design_doc_to_view_group only needs the #doc{}
Diffstat (limited to 'apps/chttpd')
-rw-r--r--apps/chttpd/src/chttpd_show.erl2
-rw-r--r--apps/chttpd/src/chttpd_view.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/chttpd/src/chttpd_show.erl b/apps/chttpd/src/chttpd_show.erl
index fba7f040..0aba2835 100644
--- a/apps/chttpd/src/chttpd_show.erl
+++ b/apps/chttpd/src/chttpd_show.erl
@@ -183,7 +183,7 @@ handle_view_list_req(Req, _Db, _DDoc) ->
handle_view_list(Req, Db, DDoc, LName, {ViewDesignName, ViewName}, Keys) ->
{ok, VDoc} = fabric:open_doc(Db, <<"_design/", ViewDesignName/binary>>, []),
- Group = couch_view_group:design_doc_to_view_group(Db, VDoc),
+ Group = couch_view_group:design_doc_to_view_group(VDoc),
IsReduce = chttpd_view:get_reduce_type(Req),
ViewType = chttpd_view:extract_view_type(ViewName, Group#group.views,
IsReduce),
diff --git a/apps/chttpd/src/chttpd_view.erl b/apps/chttpd/src/chttpd_view.erl
index 87a03307..87138702 100644
--- a/apps/chttpd/src/chttpd_view.erl
+++ b/apps/chttpd/src/chttpd_view.erl
@@ -23,7 +23,7 @@
send_chunked_error/2]).
design_doc_view(Req, Db, DDoc, ViewName, Keys) ->
- Group = couch_view_group:design_doc_to_view_group(Db, DDoc),
+ Group = couch_view_group:design_doc_to_view_group(DDoc),
IsReduce = get_reduce_type(Req),
ViewType = extract_view_type(ViewName, Group#group.views, IsReduce),
QueryArgs = parse_view_params(Req, Keys, ViewType),