gitrows icon indicating copy to clipboard operation
gitrows copied to clipboard

Response of delete method

Open vlrmprjct opened this issue 2 years ago • 0 comments

First of all, this repository is totally underrated! 💯 ❤️

I am having trouble with the documentation and the delete method. Is it a bug or am I missing something or is it just a typo in the documentation?

Regarding the docu, here I get no response object:

gitrows.delete(path, filter)
    .then((response)=>{
        // do someting with the response
})
 .catch((error)=>{ ... });

But this part works as expected by adding a data object like someDataObject:

gitrows.delete(path, someDataObject, filter)
    .then((response)=>{
        // do someting with the response
})
 .catch((error)=>{ ... });

Sourcefile: https://github.com/vlrmprjct/pia/blob/582aa18728b161d828ee01690c8c4b5bf34da357/src/server/apiRouter.js#L96

vlrmprjct avatar Nov 14 '21 15:11 vlrmprjct