File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
app/code/Magento/Customer
Model/ResourceModel/Customer
Test/Unit/Model/ResourceModel/Customer Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,13 @@ protected function getCustomerIdsForReindex()
63
63
$ gridTableName = $ this ->flatScopeResolver ->resolve (Customer::CUSTOMER_GRID_INDEXER_ID , []);
64
64
65
65
$ select = $ connection ->select ()
66
- ->from ($ connection ->getTableName ($ gridTableName ), 'last_visit_at ' )
66
+ ->from ($ this -> resource ->getTableName ($ gridTableName ), 'last_visit_at ' )
67
67
->order ('last_visit_at DESC ' )
68
68
->limit (1 );
69
69
$ lastVisitAt = $ connection ->query ($ select )->fetchColumn ();
70
70
71
71
$ select = $ connection ->select ()
72
- ->from ($ connection ->getTableName ('customer_log ' ), 'customer_id ' )
72
+ ->from ($ this -> resource ->getTableName ('customer_log ' ), 'customer_id ' )
73
73
->where ('last_login_at > ? ' , $ lastVisitAt );
74
74
75
75
$ customerIds = [];
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public function testSyncCustomerGrid()
90
90
->with (\Magento \Customer \Model \Customer::CUSTOMER_GRID_INDEXER_ID , [])
91
91
->willReturn ($ gridTable );
92
92
93
- $ this ->connection ->expects ($ this ->exactly (2 ))
93
+ $ this ->resource ->expects ($ this ->exactly (2 ))
94
94
->method ('getTableName ' )
95
95
->willReturnMap ([
96
96
[$ gridTable ],
You can’t perform that action at this time.
0 commit comments