1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Update checkdata

This commit is contained in:
David Bomba 2023-02-05 16:01:47 +11:00
parent 44cbdc388e
commit dba59c601e

View File

@ -1138,7 +1138,7 @@ class CheckData extends Command
$cc = ClientContact::on('db-ninja-01')->where('company_id', config('ninja.ninja_default_company_id'))->where('email', $cu->user->email)->first();
if($cc){
$ninja_portal_url = "https://invoiceninja.invoicing.co/client/ninja/{$cc->contact_key}/{$cu->company->company_key}";
$ninja_portal_url = "https://invoiceninja.invoicing.co/client/ninja/{$cc->contact_key}/{$cu->company->account->key}";
$cu->ninja_portal_url = $ninja_portal_url;
$cu->save();