Skip to content

Commit

Permalink
Merge pull request #68 from jorgeeurekalabs/main
Browse files Browse the repository at this point in the history
Fixed acceptsMarketing on customer update.
  • Loading branch information
jorgeeurekalabs authored Feb 10, 2024
2 parents 2948a6c + 1a0d4e4 commit 208c848
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Customer/Model/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ public function updateCustomers()
$numberOfCustomers = (int)$this->customerHelper->getNumberOfCustomers();
$customers = $this->customerResourceCollectionFactory->create()
->addAttributeToSelect('ac_contact_id')
->addAttributeToSelect('ac_customer_id')
->addAttributeToFilter('ac_contact_id', ['neq' => null])
->addAttributeToFilter(self::AC_SYNC_STATUS, ['eq' => CronConfig::SYNCED])
->addAttributeToFilter('updated_at', ['gt' => $lastUpdate])
Expand Down
2 changes: 1 addition & 1 deletion Customer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"config": {
"sort-packages": true
},
"version": "2.1.6",
"version": "2.1.7",
"require": {
"php": "~7.3.0||~7.4.0||~8.0||~8.1||~8.2",
"activecampaign/core": "2.1.*"
Expand Down
2 changes: 1 addition & 1 deletion Customer/etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="ActiveCampaign_Customer" setup_version="2.1.6">
<module name="ActiveCampaign_Customer" setup_version="2.1.7">
<sequence>
<module name="ActiveCampaign_Core"/>
</sequence>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "activecampaign/module-integration",
"description": "ActiveCampaign extension for Magento 2.3 and 2.4",
"type": "magento2-component",
"version": "2.0.14",
"version": "2.0.15",
"license": "OSL-3.0",
"require": {
"php": "~7.3.0||~7.4.0||~8.0||~8.1||~8.2"
Expand Down
2 changes: 1 addition & 1 deletion marketplace-composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "activecampaign/module-integration",
"description": "ActiveCampaign extension for Magento 2.3 and 2.4",
"type": "metapackage",
"version": "2.0.14",
"version": "2.0.15",
"license": [
"OSL-3.0"
],
Expand Down

0 comments on commit 208c848

Please sign in to comment.