Skip to content

Commit ac3fd92

Browse files
committed
fix store ID
1 parent 6b8e8bf commit ac3fd92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Meta/Sales/Observer/Facebook/SyncShippingProfiles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function execute(Observer $observer): void
6565
$storeId = $observer->getEvent()->getStoreId();
6666

6767
try {
68-
$this->shippingSyncer->syncShippingProfiles('meta_observer');
68+
$this->shippingSyncer->syncShippingProfiles('meta_observer', $storeId);
6969
} catch (Throwable $e) {
7070
$this->fbeHelper->logExceptionImmediatelyToMeta(
7171
$e,

app/code/Meta/Sales/Plugin/ShippingSyncer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private function syncShippingProfilesForStore(string $eventType, $storeId)
135135
);
136136
} catch (Exception $e) {
137137
$this->fbeHelper->logExceptionImmediatelyToMeta($e, [
138-
'store_id' => $this->fbeHelper->getStore()->getId(),
138+
'store_id' => $storeId,
139139
'event' => 'shipping_profile_sync',
140140
'event_type' => $eventType
141141
]);

0 commit comments

Comments
 (0)