We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b72001b commit 44ce176Copy full SHA for 44ce176
src/Endpoints/Block.php
@@ -46,7 +46,6 @@ private function collectChildren(): BlockCollection
46
$response = $this->get(
47
$this->url(Endpoint::BLOCKS . "/" . $this->blockId . "/children" . "?{$this->buildPaginationQuery()}")
48
);
49
-
50
if (!$response->ok())
51
throw HandlingException::instance("Block not found.", ["blockId" => $this->blockId]);
52
src/Endpoints/Endpoint.php
@@ -69,6 +69,7 @@ protected function get(string $url)
69
throw NotionException::fromResponse($response);
70
71
$this->response = $response;
72
+ return $response;
73
}
74
75
/**
0 commit comments