[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 committed by Diogo Peralta Cordeiro
parent e8f5e34202
commit b0b10cf186

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();
} }
} }