Skip to content

Commit 1440c1b

Browse files
issue-10, issue-11, issue-44
1 parent c28e578 commit 1440c1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AbandonedCart/Model/AbandonedCartSendData.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ public function sendAbandonedCartData($quoteId = null): array
229229
['lt' => new \Zend_Db_Expr('main_table.updated_at')],
230230
['null' => true]
231231
])
232-
// ->addFieldToFilter('main_table.updated_at',
233-
// ['eq' => new \Zend_Db_Expr('IF( ac_synced_date is not null or main_table.updated_at < DATE_SUB(NOW(), INTERVAL '.$minInactiveTime.' minute), main_table.updated_at,-1)')]
234-
// )
232+
->addFieldToFilter('main_table.updated_at',
233+
['eq' => new \Zend_Db_Expr('IF( ac_synced_date is not null or main_table.updated_at < DATE_SUB(NOW(), INTERVAL '.$minInactiveTime.' minute), main_table.updated_at,-1)')]
234+
)
235235
->addFieldToFilter(
236236
'is_active',
237237
'1'

0 commit comments

Comments
 (0)