Skip to content

Commit

Permalink
Nightly Board : Change in API
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jan 15, 2025
1 parent e149001 commit 3e21c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App/Service/PrestaShop/NightlyBoard.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getCampaignReports(string $date, string $campaign): array
return [];
}
$json = json_decode($json, true);
$data = array_filter($json, function ($item) use ($date, $campaign) {
$data = array_filter($json['reports'], function ($item) use ($date, $campaign) {
return $item['date'] === $date && $item['campaign'] === $campaign;
});

Expand Down

0 comments on commit 3e21c78

Please sign in to comment.