We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb3f213 commit e2c9fc4Copy full SHA for e2c9fc4
app/code/Magento/Integration/Model/ResourceModel/Oauth/Token/RequestLog.php
@@ -106,8 +106,6 @@ public function clearExpiredFailures()
106
{
107
$date = (new \DateTime())->setTimestamp($this->dateTime->gmtTimestamp());
108
$dateTime = $date->format(\Magento\Framework\Stdlib\DateTime::DATETIME_PHP_FORMAT);
109
- $select = $this->getConnection()->select();
110
- $select->from($this->getMainTable())->where('lock_expires_at <= ?', $dateTime);
111
- $this->getConnection()->delete($select);
+ $this->getConnection()->delete($this->getMainTable(), ['lock_expires_at <= ?' => $dateTime]);
112
}
113
0 commit comments