Made a couple of fixes during testing

- Updated audit table so long entity names did not squish everything
  else.
- Added filtering to view service popular list so that recycle binned
  items did not cause issues.
This commit is contained in:
Dan Brown
2021-01-03 19:02:50 +00:00
parent 47a6c621ff
commit 75a795ab72
2 changed files with 7 additions and 2 deletions

View File

@ -74,7 +74,12 @@ class ViewService
$query->whereIn('viewable_type', $this->entityProvider->getMorphClasses($filterModels));
}
return $query->with('viewable')->skip($skipCount)->take($count)->get()->pluck('viewable');
return $query->with('viewable')
->skip($skipCount)
->take($count)
->get()
->pluck('viewable')
->filter();
}
/**