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 c755686 + 35fd895 commit 2e6fcfdCopy full SHA for 2e6fcfd
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