summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriilyak <iilyak@users.noreply.github.com>2020-04-10 07:36:32 -0700
committerGitHub <noreply@github.com>2020-04-10 07:36:32 -0700
commitaad871b36d32f0d2e4a1a51a0552bb5cf6a5b199 (patch)
tree133b9ff0377993ef5cda7a12ffb2e3deaea1f494
parentcbad08d5fa4308fa9d243bae8eabd4872eaa5837 (diff)
parent2bb0ccda2935c028b4fe7fc8edd28f0d1a7febf8 (diff)
downloadcouchdb-aad871b36d32f0d2e4a1a51a0552bb5cf6a5b199.tar.gz
Merge pull request #2775 from cloudant/mango-plugin-fixup
Fix incorrect usage of couch_epi in mango plugin
-rw-r--r--src/mango/src/mango_plugin.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mango/src/mango_plugin.erl b/src/mango/src/mango_plugin.erl
index 296a35419..de23f8e7c 100644
--- a/src/mango/src/mango_plugin.erl
+++ b/src/mango/src/mango_plugin.erl
@@ -24,11 +24,14 @@
%% ------------------------------------------------------------------
before_find(HttpReq0) ->
- with_pipe(before_find, [HttpReq0]).
+ [HttpReq1] = with_pipe(before_find, [HttpReq0]),
+ {ok, HttpReq1}.
after_find(HttpReq, HttpResp, Arg0) ->
- with_pipe(after_find, [HttpReq, HttpResp, Arg0]).
+ [_HttpReq, _HttpResp, Arg1] = with_pipe(after_find, [HttpReq, HttpResp, Arg0]),
+ {ok, Arg1}.
+
%% ------------------------------------------------------------------
%% Internal Function Definitions