Code style fixes

This commit is contained in:
DariusIII
2024-09-10 22:22:42 +02:00
parent 3da8d4fa04
commit 6f5874e384
5 changed files with 4 additions and 8 deletions
+2 -2
View File
@@ -14,12 +14,12 @@ class ReleaseStat extends Model
public static function insertRecentlyAdded(): void
{
$categories = Category::query()->with('parent')->where('r.adddate', '>', now()->subWeek())->select([
$categories = Category::query()->with('parent')->where('r.adddate', '>', now()->subWeek())->select([
'root_categories_id', DB::raw('COUNT(r.id) as count'), 'title',
])->join('releases as r', 'r.categories_id', '=',
'categories.id')->groupBy('title')->orderByDesc('count')->get();
foreach($categories as $category) {
foreach ($categories as $category) {
self::updateOrCreate([
'category' => $category->title,
'count' => $category->count,