chore: checkpoint before block builder refactor
This commit is contained in:
@@ -63,7 +63,7 @@ class SyncSubscriberToMailwizz implements ShouldBeUnique, ShouldQueue
|
||||
return;
|
||||
}
|
||||
|
||||
if (! $this->configIsComplete($config, $page->phone_enabled)) {
|
||||
if (! $this->configIsComplete($config)) {
|
||||
Log::warning('SyncSubscriberToMailwizz: incomplete Mailwizz config', [
|
||||
'subscriber_id' => $subscriber->id,
|
||||
'page_id' => $page->id,
|
||||
@@ -106,16 +106,12 @@ class SyncSubscriberToMailwizz implements ShouldBeUnique, ShouldQueue
|
||||
]);
|
||||
}
|
||||
|
||||
private function configIsComplete(MailwizzConfig $config, bool $phoneEnabled): bool
|
||||
private function configIsComplete(MailwizzConfig $config): bool
|
||||
{
|
||||
if ($config->list_uid === '' || $config->field_email === '' || $config->field_first_name === '' || $config->field_last_name === '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($phoneEnabled && ($config->field_phone === null || $config->field_phone === '')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($config->tag_field === null || $config->tag_field === '' || $config->tag_value === null || $config->tag_value === '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user