mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix null pointer
This commit is contained in:
@@ -36,6 +36,7 @@ use FireflyIII\Services\Internal\Update\CategoryUpdateService;
|
||||
use FireflyIII\User;
|
||||
use Illuminate\Contracts\Auth\Authenticatable;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
/**
|
||||
* Class CategoryRepository.
|
||||
@@ -88,6 +89,7 @@ class CategoryRepository implements CategoryRepositoryInterface
|
||||
RuleAction::where('action_type', 'set_category')->where('action_value', $category->name)->delete();
|
||||
$category->delete();
|
||||
}
|
||||
Log::channel('audit')->info('Delete all categories through destroyAll');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user