Fixed an issue where update method was not returning a success response