mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-05 13:43:36 +00:00
Fix #11660
This commit is contained in:
@@ -95,6 +95,10 @@ class PeriodStatisticRepository implements PeriodStatisticRepositoryInterface, U
|
||||
#[Override]
|
||||
public function deleteStatisticsForPrefix(string $prefix, Collection $dates): void
|
||||
{
|
||||
if(null === $this->userGroup) {
|
||||
Log::warning(('No user group, so cannot continue.'));
|
||||
return;
|
||||
}
|
||||
$count = $this->userGroup
|
||||
->periodStatistics()
|
||||
->where(function (Builder $q) use ($dates): void {
|
||||
|
||||
Reference in New Issue
Block a user