YUKI Hiroshi
null+****@clear*****
Thu Feb 7 19:32:16 JST 2013
YUKI Hiroshi 2013-02-07 19:32:16 +0900 (Thu, 07 Feb 2013) New Revision: 1061fd239b36e39b88b2fb066bb5ad7dcb8c32f4 https://github.com/groonga/express-kotoumi/commit/1061fd239b36e39b88b2fb066bb5ad7dcb8c32f4 Log: "toClient" filter of REST commands should return event name too. Modified files: lib/frontend/rest-adaptor.js Modified: lib/frontend/rest-adaptor.js (+4 -2) =================================================================== --- lib/frontend/rest-adaptor.js 2013-02-07 19:31:53 +0900 (6a4ae3e) +++ lib/frontend/rest-adaptor.js 2013-02-07 19:32:16 +0900 (bd9281e) @@ -25,8 +25,10 @@ function createHandler(params) { response.send(body, error); } else { var body = responseMessage.body; - if (definition.toClient) - body = definition.toClient(commandName, body); + if (definition.toClient) { + var result = definition.toClient(commandName, body); + body = result[1]; + } response.contentType('application/json'); response.send(body, 200); } -------------- next part -------------- HTML����������������������������...Download