Skip to content

Commit

Permalink
refactor: swap params for attachment delete
Browse files Browse the repository at this point in the history
  • Loading branch information
animify committed Feb 22, 2020
1 parent a0e33b3 commit 5b75897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dribbble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class Dribbble {
create: (shot: string, body: AttachmentsCreateBody) => {
return Request.fetch({ url: `/shots/${shot}/attachments`, method: 'POST', body });
},
delete: (shot: string, id: string) => {
delete: (id: string, shot: string) => {
return Request.fetch({ url: `/shots/${shot}/attachments/${id}`, method: 'DELETE' });
},
};
Expand Down

0 comments on commit 5b75897

Please sign in to comment.