mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Fix null pointer
This commit is contained in:
@@ -42,6 +42,7 @@ use Illuminate\Contracts\Auth\Authenticatable;
|
||||
use Illuminate\Database\Query\JoinClause;
|
||||
use Illuminate\Pagination\LengthAwarePaginator;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
/**
|
||||
* Class BillRepository.
|
||||
@@ -105,6 +106,7 @@ class BillRepository implements BillRepositoryInterface
|
||||
|
||||
public function destroyAll(): void
|
||||
{
|
||||
Log::channel('audit')->info('Delete all bills through destroyAll');
|
||||
$this->user->bills()->delete();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user