Replace usage ScheduledTask::touchAllByIds with repository

[MAILPOET-4309]
This commit is contained in:
Jan Lysý
2022-08-16 11:43:40 +02:00
committed by Veljko V
parent aa84ce66a6
commit fecb26b3b5
3 changed files with 9 additions and 3 deletions

View File

@@ -134,7 +134,7 @@ class SendingQueue {
$this->startProgress($task);
try {
ScheduledTaskModel::touchAllByIds([$taskEntity->getId()]);
$this->scheduledTasksRepository->touchAllByIds([$queue->taskId]);
$this->processSending($queue, (int)$timer);
} catch (\Exception $e) {
$this->stopProgress($task);