mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Code style fixes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user