kuzzleio / documentation-old

Source of http://docs.kuzzle.io/
Apache License 2.0
1 stars 2 forks source link

http://docs.kuzzle.io/plugins-reference/plugins-context/accessors/#execute : bad callback signature #345

Closed ballinette closed 7 years ago

ballinette commented 7 years ago

the documentation says:

context.accessors.execute(request, (error, request) => {
  /*
   Kuzzle's response can be obtained with request.response
   See Request constructor documentation for more information
   */
});

But the method calls the callback direclty with the response object.

scottinet commented 7 years ago

That's also what I thought when I changed this method's behavior (see https://github.com/kuzzleio/kuzzle/pull/941 ), but after taking a closer look, I can confirm that for once the document is right: the execute method resolves to a Request object, and not a RequestResponse one.

I'm closing this issue.