Rename functions

[MAILPOET-2439]
This commit is contained in:
Pavel Dohnal
2019-10-30 12:35:58 +01:00
committed by Jack Kitterhing
parent 0b88eccc91
commit cf08200c5d
3 changed files with 4 additions and 11 deletions

View File

@@ -76,7 +76,7 @@ class Worker {
/** @throws \Exception */
function process() {
$settings = $this->settings->get(self::SETTINGS_KEY);
foreach (self::getDueTasks() as $stats_notification_entity) {
foreach ($this->repository->findScheduled(Sending::RESULT_BATCH_SIZE) as $stats_notification_entity) {
try {
$extra_params = [
'meta' => $this->mailerMetaInfo->getStatsNotificationMetaInfo(),
@@ -93,13 +93,6 @@ class Worker {
}
}
/**
* @return StatsNotificationEntity[]
*/
private function getDueTasks() {
return $this->repository->findDueTasks(Sending::RESULT_BATCH_SIZE);
}
private function constructNewsletter(StatsNotificationEntity $stats_notification_entity) {
$newsletter = $stats_notification_entity->getNewsletter();
$link = $this->newsletter_link_repository->findTopLinkForNewsletter($newsletter->getId());