Skip to content

Commit 4fc9572

Browse files
MAGETWO-45602: SQL error in cron_schedule table on update_last_visit_at column
1 parent f3bf4cb commit 4fc9572

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Customer/Model/ResourceModel/Customer

1 file changed

+2
-2
lines changed

app/code/Magento/Customer/Model/ResourceModel/Customer/Grid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ protected function getCustomerIdsForReindex()
6363
$gridTableName = $this->flatScopeResolver->resolve(Customer::CUSTOMER_GRID_INDEXER_ID, []);
6464

6565
$select = $connection->select()
66-
->from($connection->getTableName($gridTableName), 'last_visit_at')
66+
->from($this->resource->getTableName($gridTableName), 'last_visit_at')
6767
->order('last_visit_at DESC')
6868
->limit(1);
6969
$lastVisitAt = $connection->query($select)->fetchColumn();
7070

7171
$select = $connection->select()
72-
->from($connection->getTableName('customer_log'), 'customer_id')
72+
->from($this->resource->getTableName('customer_log'), 'customer_id')
7373
->where('last_login_at > ?', $lastVisitAt);
7474

7575
$customerIds = [];

0 commit comments

Comments
 (0)