Skip to content

Commit

Permalink
Swapping updateFarmerHandler from a PUT request to a PATCH request
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyJCampbell committed Sep 17, 2019
1 parent 6a2b765 commit 0c5dd3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/handlers/farmerHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const updateFarmerHandler = (changes, farmerId) => {
throw new Error("Make sure you're passing valid changes!");
}

return axios.put(`${pathObj.updateFarmerPath}/${farmerId}/update`,
return axios.patch(`${pathObj.updateFarmerPath}/${farmerId}/update`,
changes,
setHeaders(),
)
Expand Down

0 comments on commit 0c5dd3e

Please sign in to comment.