Skip to content

Commit 44ce176

Browse files
committed
small fix
put missing return of response within get-method of Endpoint
1 parent b72001b commit 44ce176

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/Endpoints/Block.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ private function collectChildren(): BlockCollection
4646
$response = $this->get(
4747
$this->url(Endpoint::BLOCKS . "/" . $this->blockId . "/children" . "?{$this->buildPaginationQuery()}")
4848
);
49-
5049
if (!$response->ok())
5150
throw HandlingException::instance("Block not found.", ["blockId" => $this->blockId]);
5251

src/Endpoints/Endpoint.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ protected function get(string $url)
6969
throw NotionException::fromResponse($response);
7070

7171
$this->response = $response;
72+
return $response;
7273
}
7374

7475
/**

0 commit comments

Comments
 (0)