44 $typeId = Recipient\Type::detect($this->fields[
'CODE']);
45 $code = Recipient\Normalizer::normalize($this->fields[
'CODE'], $typeId);
47 $contact = ContactTable::getRow([
48 'select' => [
'CODE',
'CONSENT_STATUS'],
51 '=TYPE_ID' => $typeId,
59 $contact[
'CODE'] === $this->fields[
'CODE'] &&
60 $contact[
'CONSENT_STATUS'] !== $currentStatus