summaryrefslogtreecommitdiff
path: root/src/chttpd_view.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-07-06 11:40:38 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 11:18:48 -0400
commit02767bad6e66b88ebf3e74fbd70ca49a4fbfae5a (patch)
treeb154d7d074ea20fa471bba2173b12ecd2603f3ad /src/chttpd_view.erl
parenta0b4c5dea139fa5829c99de0529b2f7e14bf05a9 (diff)
rearrange fabric arguments to match couch_btree
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}) ->