Skip to content

Commit

Permalink
Removed entity from create() 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 a4d38fc commit c2968ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builders/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function create( $data )

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

return new $this->model( $this->request, $responseData->{$this->entity}[ 0 ] );
return new $this->model( $this->request, $responseData );
} );
}

Expand Down

0 comments on commit c2968ad

Please sign in to comment.