Skip to content

Commit

Permalink
Fix read() and readStream()
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed May 2, 2022
1 parent 02c1e71 commit 2a80bbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ElementsAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ protected function getMediaFileDownload($path)
throw new Exception("Not a file.");
}

$id = $file['bundle'];
$response = $this->client->get("api/media/download/{$id}");
$id = $file['id'];
$response = $this->client->get("api/2/media/files/{$id}/download");

return $response;
}
Expand Down

0 comments on commit 2a80bbe

Please sign in to comment.