stickbyatlas commented on issue #1021: CouchDB 2.1: _users database update 
handlers always invoked with null first parameter
URL: https://github.com/apache/couchdb/issues/1021#issuecomment-347349896
 
 
   @rnewson No, it's not the actual update function. The one I provided up top 
was just a simplistic proof-of-concept, to illustrate that the doc itself 
wasn't being passed into the function. My update function returns `[doc, 
JSON.stringify(responseObj)]` unless I deliberately want it to fail with an 
error.
   
   The reason I crafted the update function the way I did in my sample code was 
to effectively 'log' the doc param so it could be inspected via curl. In other 
versions of CouchDB, that update function will respond with the user's document 
(without making changes to the document).
   
   Have you been able to reproduce the behaviour I described?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to