Remove code that is not needed

[MAILPOET-2439]
This commit is contained in:
Pavel Dohnal
2019-10-30 12:37:18 +01:00
committed by Jack Kitterhing
parent cf08200c5d
commit 0e6ee238e9

View File

@@ -139,7 +139,6 @@ class Worker {
$task->setStatus(ScheduledTask::STATUS_COMPLETED);
$task->setProcessedAt(new Carbon);
$task->setScheduledAt(null);
$this->entity_manager->persist($task);
$this->entity_manager->flush();
}