diff options
author | ILYA Khlopotov <iilyak@apache.org> | 2020-04-10 07:06:17 -0700 |
---|---|---|
committer | ILYA Khlopotov <iilyak@apache.org> | 2020-04-10 07:06:17 -0700 |
commit | 2bb0ccda2935c028b4fe7fc8edd28f0d1a7febf8 (patch) | |
tree | 133b9ff0377993ef5cda7a12ffb2e3deaea1f494 | |
parent | cbad08d5fa4308fa9d243bae8eabd4872eaa5837 (diff) | |
download | couchdb-2bb0ccda2935c028b4fe7fc8edd28f0d1a7febf8.tar.gz |
Fix incorrect usage of couch_epi in mango plugin
Previously we used the value returned from couch_epi apply as is.
However it returns a list of arguments passed in the same order.
-rw-r--r-- | src/mango/src/mango_plugin.erl | 7 |
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 |