Skip to content

Commit e90024d

Browse files
committed
Merge branch 'tests/basic-functionality' of https://github.com/5am-code/laravel-notion-api into tests/basic-functionality
2 parents c3455ea + 44ce176 commit e90024d

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
@@ -80,6 +80,7 @@ protected function get(string $url)
8080
throw NotionException::fromResponse($response);
8181

8282
$this->response = $response;
83+
return $response;
8384
}
8485

8586
/**

0 commit comments

Comments
 (0)