From 109b3f81036f1c92aae8f8797c1c9b93e26cedfa Mon Sep 17 00:00:00 2001 From: ildelux Date: Tue, 4 Dec 2018 15:50:27 +0100 Subject: [PATCH] prevent timeout on admin reset previous customer controller --- Controller/Adminhtml/Hub/Reset.php | 6 ++++-- composer.json | 2 +- etc/module.xml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Controller/Adminhtml/Hub/Reset.php b/Controller/Adminhtml/Hub/Reset.php index d6771f2..027841e 100644 --- a/Controller/Adminhtml/Hub/Reset.php +++ b/Controller/Adminhtml/Hub/Reset.php @@ -57,8 +57,10 @@ public function execute() /** @var \Magento\Framework\Controller\Result\Json $result */ $result = $this->_jsonFactory->create(); try { - $this->_previousCustomerService->resetPreviousCustomers() - ->collectPreviousCustomers(); + $this->_previousCustomerService + ->resetPreviousCustomers() + //->collectPreviousCustomers() + ; $result->setData(['success' => true]); } catch (\Exception $e) { $result->setData(['error' => $e]); diff --git a/composer.json b/composer.json index ff9546a..b88a82a 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ }, "type": "magento2-module", - "version": "1.2.2", + "version": "1.2.3", "license": [ "OSL-3.0", "AFL-3.0" diff --git a/etc/module.xml b/etc/module.xml index 5d0701a..474da20 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,7 +1,7 @@ - +