Skip to content

Commit 0f197eb

Browse files
author
Michael Logvin
committed
Merge remote-tracking branch 'south/MAGETWO-45602' into bugfixes
2 parents 7abfdb4 + 49cbcc9 commit 0f197eb

File tree

2 files changed

+3
-3
lines changed
  • app/code/Magento/Customer

2 files changed

+3
-3
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 = [];

app/code/Magento/Customer/Test/Unit/Model/ResourceModel/Customer/GridTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function testSyncCustomerGrid()
9090
->with(\Magento\Customer\Model\Customer::CUSTOMER_GRID_INDEXER_ID, [])
9191
->willReturn($gridTable);
9292

93-
$this->connection->expects($this->exactly(2))
93+
$this->resource->expects($this->exactly(2))
9494
->method('getTableName')
9595
->willReturnMap([
9696
[$gridTable],

0 commit comments

Comments
 (0)