fix
This commit is contained in:
@@ -37,7 +37,7 @@ class MassEmail extends Entity
|
||||
|
||||
public const STATUS_COMPLETE = 'Complete';
|
||||
public const STATUS_FAILED = 'Failed';
|
||||
public const STATUS_IN_PROGRESS = 'In Process';
|
||||
public const STATUS_IN_PROCESS = 'In Process';
|
||||
public const STATUS_PENDING = 'Pending';
|
||||
public const STATUS_DRAFT = 'Draft';
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ class ProcessMassEmail implements JobDataLess
|
||||
$massEmailList = $this->entityManager
|
||||
->getRDBRepositoryByClass(MassEmail::class)
|
||||
->where([
|
||||
'status' => MassEmail::STATUS_IN_PROGRESS,
|
||||
'status' => MassEmail::STATUS_IN_PROCESS,
|
||||
])
|
||||
->find();
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ class QueueCreator
|
||||
}
|
||||
|
||||
if (!$isTest) {
|
||||
$massEmail->set('status', MassEmail::STATUS_IN_PROGRESS);
|
||||
$massEmail->set('status', MassEmail::STATUS_IN_PROCESS);
|
||||
|
||||
if (empty($itemList)) {
|
||||
$massEmail->set('status', MassEmail::STATUS_COMPLETE);
|
||||
|
||||
@@ -499,7 +499,7 @@ class SendingProcessor
|
||||
|
||||
$this->entityManager->saveEntity($queueItem);
|
||||
|
||||
$this->log->error('MassEmail#sendQueueItem: [' . $e->getCode() . '] ' .$e->getMessage());
|
||||
$this->log->error("Mass Email, send item: {$e->getCode()}, " . $e->getMessage());
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user