node-zendesk
node-zendesk copied to clipboard
Change CommentAttachement redact from DELETE to PUT HTTP Method
Issue
Server returns 404 error when trying to redact a comment attachment. This is due to the fact the method is using a delete and not a put http request.
Error from console:
Error: Request processing failed: Zendesk Error (404): Item not found
Source: #https://github.com/blakmatrix/node-zendesk/blob/514199080d654bfbb5a6638fdee48e7a9a595809/src/clients/core/attachments.js#L81
##Fix
Change method by PUT:
super.put