Skip to content

Commit 3e21c78

Browse files
committed
Nightly Board : Change in API
1 parent e149001 commit 3e21c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App/Service/PrestaShop/NightlyBoard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function getCampaignReports(string $date, string $campaign): array
4444
return [];
4545
}
4646
$json = json_decode($json, true);
47-
$data = array_filter($json, function ($item) use ($date, $campaign) {
47+
$data = array_filter($json['reports'], function ($item) use ($date, $campaign) {
4848
return $item['date'] === $date && $item['campaign'] === $campaign;
4949
});
5050

0 commit comments

Comments
 (0)