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 f3376af7..6d29101a 100644
--- a/src/chttpd_view.erl
+++ b/src/chttpd_view.erl
@@ -37,7 +37,7 @@ design_doc_view(Req, Db, DDoc, ViewName, Keys) ->
chttpd:etag_respond(Req, Etag, fun() ->
{ok, Resp} = chttpd:start_json_response(Req, 200, [{"Etag",Etag}]),
CB = fun view_callback/2,
- fabric:query_view(Db, DDoc, ViewName, QueryArgs, CB, {nil, Resp})
+ fabric:query_view(Db, DDoc, ViewName, CB, {nil, Resp}, QueryArgs)
end).
view_callback({total_and_offset, Total, Offset}, {nil, Resp}) ->