[Queue_item] There is no "modified" attribute

Fixes a regression introduced in ec86de2bc4
This commit is contained in:
Alexei Sorokin 2020-08-10 17:46:30 +03:00
parent 8c41663175
commit ce665baa88
1 changed files with 1 additions and 8 deletions

View File

@ -104,21 +104,14 @@ class Queue_item extends Managed_DataObject
*/ */
public function releaseClaim() public function releaseClaim()
{ {
$modified = common_sql_now();
// @fixme Consider $this->sqlValue('NULL') // @fixme Consider $this->sqlValue('NULL')
$ret = $this->query(sprintf( $ret = $this->query(sprintf(
<<<'END' 'UPDATE queue_item SET claimed = NULL WHERE id = %d',
UPDATE queue_item
SET claimed = NULL, modified = %1$s
WHERE id = %2$d
END,
$this->_quote($modified),
$this->getID() $this->getID()
)); ));
if ($ret) { if ($ret) {
$this->claimed = null; $this->claimed = null;
$this->modified = $modified;
$this->encache(); $this->encache();
} }
} }