mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 12:24:35 -04:00
Fixes for test/demo data
This commit is contained in:
parent
46bb38a20c
commit
502bd4ad2d
@ -286,6 +286,7 @@ class CreateTestData extends Command
|
|||||||
$company = factory(\App\Models\Company::class)->create([
|
$company = factory(\App\Models\Company::class)->create([
|
||||||
'account_id' => $account->id,
|
'account_id' => $account->id,
|
||||||
'slack_webhook_url' => config('ninja.notification.slack'),
|
'slack_webhook_url' => config('ninja.notification.slack'),
|
||||||
|
'is_large' => true,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$account->default_company_id = $company->id;
|
$account->default_company_id = $company->id;
|
||||||
|
@ -30,7 +30,6 @@ class ClientContactRepository extends BaseRepository
|
|||||||
} else {
|
} else {
|
||||||
$contacts = collect();
|
$contacts = collect();
|
||||||
}
|
}
|
||||||
info(print_r($client->contacts->toArray(),1));
|
|
||||||
|
|
||||||
$client->contacts->pluck('id')->diff($contacts->pluck('id'))->each(function ($contact) {
|
$client->contacts->pluck('id')->diff($contacts->pluck('id'))->each(function ($contact) {
|
||||||
ClientContact::destroy($contact);
|
ClientContact::destroy($contact);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user