Skip to content

Commit

Permalink
Remove superflous attribute from event model
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Nov 2, 2023
1 parent 2d2da26 commit 43782a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Syncing meta fields is no longer performed in a job.
- Deprecated the `craft\shopify\jobs\UpdateProductMetadata` job.
- Fixed a bug where the template routing setting would not save.
- Removed `craft\shopify\events\ShopifyProductSyncEvent::$metafields`. Use `craft\shopify\events\ShopifyProductSyncEvent::$element->getMetaFields()` instead.

## 3.2.0 - 2023-06-12

Expand Down
1 change: 0 additions & 1 deletion src/services/Products.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ public function createOrUpdateProduct(ShopifyProduct $product, array $metafields
$event = new ShopifyProductSyncEvent([
'element' => $productElement,
'source' => $product,
'metafields' => $metafields,
]);
$this->trigger(self::EVENT_BEFORE_SYNCHRONIZE_PRODUCT, $event);

Expand Down

0 comments on commit 43782a5

Please sign in to comment.