ramdesh commented on issue #40: Destroying An Undefined Doc Removes the Whole 
Database
URL: https://github.com/apache/couchdb-nano/issues/40#issuecomment-312808433
 
 
   On close inspection, I found that the HTTP request that goes to the database 
if the id is undefined, is the same as the database delete request: 
   `{ method: 'DELETE',
     headers:
      { 'content-type': 'application/json',
        accept: 'application/json' },
     uri: 'https://{database-url}/{database-name}',
     qs: { rev: undefined } }`
   
   The two functions in nano, `destroyDb` and `destroyDoc` seem to build the 
same request URL when the ID is undefined.
 
----------------------------------------------------------------
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