summaryrefslogtreecommitdiff
path: root/src/chttpd_view.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/chttpd_view.erl')
-rw-r--r--src/chttpd_view.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chttpd_view.erl b/src/chttpd_view.erl
index c87d5a73..7308f4bd 100644
--- a/src/chttpd_view.erl
+++ b/src/chttpd_view.erl
@@ -26,7 +26,7 @@
send_chunked_error/2]).
design_doc_view(Req, Db, DDoc, ViewName, Keys) ->
- Group = couch_view_group:design_doc_to_view_group(#db{name=Db}, DDoc),
+ Group = couch_view_group:design_doc_to_view_group(Db, DDoc),
IsReduce = get_reduce_type(Req),
ViewType = extract_view_type(ViewName, Group#group.views, IsReduce),
QueryArgs = parse_view_params(Req, Keys, ViewType),