mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Update lib/private/TextToImage/Db/TaskMapper.php
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
f9d209cf15
commit
ded77292d5
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ class TaskMapper extends QBMapper {
|
|||
* @throws Exception
|
||||
*/
|
||||
public function deleteOlderThan(int $timeout): array {
|
||||
$datetime = new DateTime();
|
||||
$datetime = $this->timeFactory->getDateTime();
|
||||
$datetime->sub(new \DateInterval('PT'.$timeout.'S'));
|
||||
$qb = $this->db->getQueryBuilder();
|
||||
$qb->select('*')
|
||||
|
|
|
|||
Loading…
Reference in a new issue