Skip to content

Commit 4748473

Browse files
authored
Relax onsite_eligible type restriction. (#871)
1 parent 11c7674 commit 4748473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Meta/BusinessExtension/Model/MBEInstalls.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function save($response, $storeId)
134134
$data = $response[0];
135135
$catalogId = $data['catalog_id'] ?? '';
136136
$pixelId = $data['pixel_id'] ?? '';
137-
$onsite_eligible = $data['onsite_eligible'] ?? false;
137+
$onsite_eligible = filter_var($data['onsite_eligible'], FILTER_VALIDATE_BOOLEAN) ?? false;
138138
$commercePartnerIntegrationId = $data['commerce_partner_integration_id'] ?? '';
139139

140140
// we will update catalog config if catalog has been updated in Meta
@@ -285,7 +285,7 @@ public function saveCommercePartnerIntegrationId($commercePartnerIntegrationId,
285285
* @param int $storeId
286286
* @return $this
287287
*/
288-
public function saveIsOnsiteEligible(bool $onsite_eligible, int $storeId): MBEInstalls
288+
public function saveIsOnsiteEligible($onsite_eligible, $storeId): MBEInstalls
289289
{
290290
if ($onsite_eligible) {
291291
$this->fbeHelper->log(

0 commit comments

Comments
 (0)