Skip to content

Commit 4ac8142

Browse files
committed
Fixed model update
1 parent 6b88daf commit 4ac8142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function update( $data = [] )
8888

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

91-
return new $this->modelClass( $this->request, $responseData->{$this->entity}[ 0 ] );
91+
return new $this->modelClass( $this->request, $responseData->{str_singular( $this->entity )} );
9292
} );
9393
}
9494

0 commit comments

Comments
 (0)