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.
2 parents c3455ea + 44ce176 commit e90024dCopy full SHA for e90024d
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
@@ -80,6 +80,7 @@ protected function get(string $url)
80
throw NotionException::fromResponse($response);
81
82
$this->response = $response;
83
+ return $response;
84
}
85
86
/**
0 commit comments