Skip to content

Commit

Permalink
Removed entity from update() response and returning only responseData
Browse files Browse the repository at this point in the history
  • Loading branch information
kg-bot committed Mar 22, 2019
1 parent e2da826 commit a4d38fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function update( $data = [] )

$responseData = json_decode( (string) $response->getBody() );

return new $this->modelClass( $this->request, $responseData->{str_singular( $this->entity )} );
return new $this->modelClass( $this->request, $responseData );
} );
}

Expand Down

0 comments on commit a4d38fc

Please sign in to comment.