1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Fixes for test/demo data

This commit is contained in:
David Bomba 2020-07-28 18:37:13 +10:00
parent 46bb38a20c
commit 502bd4ad2d
2 changed files with 1 additions and 1 deletions

View File

@ -286,6 +286,7 @@ class CreateTestData extends Command
$company = factory(\App\Models\Company::class)->create([
'account_id' => $account->id,
'slack_webhook_url' => config('ninja.notification.slack'),
'is_large' => true,
]);
$account->default_company_id = $company->id;

View File

@ -30,7 +30,6 @@ class ClientContactRepository extends BaseRepository
} else {
$contacts = collect();
}
info(print_r($client->contacts->toArray(),1));
$client->contacts->pluck('id')->diff($contacts->pluck('id'))->each(function ($contact) {
ClientContact::destroy($contact);