Skip to content

Commit

Permalink
Merge pull request #107 from codebar-ag/fix-file-cabinets
Browse files Browse the repository at this point in the history
Fixed FileCabinets Request
  • Loading branch information
StanBarrows authored Oct 8, 2023
2 parents b474e4c + 03ac071 commit 323c1ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ $organizations = $connector->send(new GetOrganizationsRequest())->dto();
/**
* Return all file cabinets.
*/
$fileCabinets = $connector->send(new GetCabinetsRequest())->dto();
$fileCabinets = $connector->send(new GetFileCabinetsRequest())->dto();

/**
* Return all fields of a file cabinet.
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/FileCabinets/GetFileCabinetsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static function fromResponse(Response $response): Collection|Enumerable

EnsureValidResponse::from($response);

$cabinets = $response->throw()->body();
$cabinets = $response->throw()->json('FileCabinet');

return collect($cabinets)->map(fn (array $cabinet) => FileCabinet::fromJson($cabinet));
}
Expand Down

0 comments on commit 323c1ed

Please sign in to comment.