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 c755686 commit 35fd895Copy full SHA for 35fd895
src/FabianBeiner/Todoist/TodoistSectionsTrait.php
@@ -30,10 +30,10 @@ public function getAllSections(?string $projectId = null): bool|array
30
{
31
if ( ! $this->validateId($projectId)) {
32
/** @var object $result Result of the GET request. */
33
- $result = $this->get('sections?project_id=' . $projectId);
+ $result = $this->get('sections');
34
} else {
35
36
- $result = $this->get('sections');
+ $result = $this->get('sections?project_id=' . $projectId);
37
}
38
39
return $this->handleResponse($result->getStatusCode(), $result->getBody()->getContents());
0 commit comments