diff --git a/src/Requests/ContactRelations/FetchAContactRelationRequest.php b/src/Requests/ContactRelations/FetchAContactRelationRequest.php index ee2dcc9..a64549b 100644 --- a/src/Requests/ContactRelations/FetchAContactRelationRequest.php +++ b/src/Requests/ContactRelations/FetchAContactRelationRequest.php @@ -2,7 +2,7 @@ namespace CodebarAg\Bexio\Requests\ContactRelations; -use CodebarAg\Bexio\Dto\ContactRelations\ContactGroupDTO; +use CodebarAg\Bexio\Dto\ContactRelations\ContactRelationDTO; use Exception; use Saloon\Enums\Method; use Saloon\Http\Request; @@ -28,6 +28,6 @@ public function createDtoFromResponse(Response $response): mixed throw new Exception('Request was not successful. Unable to create DTO.'); } - return ContactGroupDTO::fromResponse($response); + return ContactRelationDTO::fromResponse($response); } }