Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeStatik committed Oct 19, 2022
2 parents ebf61ef + 04adb90 commit 8a3fdbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to `laravel-surveyhero` will be documented in this file.

## v1.3.5 - 2022-10-19

- Add collectors to mapping command
- Fix mapping command formatting when mapping multiple surveys

## 1.3.4 - 2022-09-30

Support for answer_mapping to subquestions of choice_table type.
Expand Down
1 change: 1 addition & 0 deletions src/Http/SurveyheroClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function getSurveyQuestions(string|int $surveyId, string $lang = null): a
public function getSurveyCollectors(string|int $surveyId): ?array
{
$collectorData = $this->fetchFromSurveyHero(sprintf('surveys/%s/collectors', $surveyId));

return $collectorData->successful() ? json_decode($collectorData->body())->collectors : null;
}

Expand Down

0 comments on commit 8a3fdbd

Please sign in to comment.