Remove duplicated method in ScheduledTaskSubscribersRepository

[MAILPOET-5422]
This commit is contained in:
Rodrigo Primo
2023-06-21 17:17:19 -03:00
committed by Jan Lysý
parent f37e73d68e
commit 6a438f68d8
2 changed files with 1 additions and 10 deletions

View File

@@ -78,15 +78,6 @@ class ScheduledTaskSubscribersRepository extends Repository {
return $subscribersIds;
}
public function deleteByTask(ScheduledTaskEntity $scheduledTask): void {
$this->entityManager->createQueryBuilder()
->delete(ScheduledTaskSubscriberEntity::class, 'sts')
->where('sts.task = :task')
->setParameter('task', $scheduledTask)
->getQuery()
->execute();
}
/**
* @param int[] $subscriberIds
*/