Unify list vs segment naming with a rest of codebase

[MAILPOET-3418]
This commit is contained in:
Rostislav Wolny
2021-04-01 13:51:42 +02:00
committed by Veljko V
parent 3dc5c5ce80
commit 3d2c62fc16
4 changed files with 9 additions and 9 deletions

View File

@ -32,7 +32,7 @@ class SendingQueue {
public $batchSize;
const BATCH_SIZE = 20;
const TASK_BATCH_SIZE = 5;
const EMAIL_WITH_INVALID_LIST_OPTION = 'mailpoet_email_with_invalid_list';
const EMAIL_WITH_INVALID_SEGMENT_OPTION = 'mailpoet_email_with_invalid_segment';
/** @var StatsNotificationsScheduler */
public $statsNotificationsScheduler;
@ -131,7 +131,7 @@ class SendingQueue {
);
$queue->status = ScheduledTaskEntity::STATUS_PAUSED;
$queue->save();
$this->wp->setTransient(self::EMAIL_WITH_INVALID_LIST_OPTION, $newsletter->subject);
$this->wp->setTransient(self::EMAIL_WITH_INVALID_SEGMENT_OPTION, $newsletter->subject);
continue;
}