Tests for merging clients

This commit is contained in:
= 2021-08-01 21:03:30 +10:00
parent b95b80fc32
commit 70b4529076

View File

@ -67,10 +67,9 @@ class Merge extends AbstractService
return $client_contact->email == $contact->email;
});
if(!$exist)
if($exist)
{
nlog("doesn't exist - merging");
$contact->client_id = $this->client->id;
$contact->delete();
$contact->save();
}