fix: return json when update is successful not error messages