Skip to content

Commit 5b9adce

Browse files
committed
wip
1 parent a0249aa commit 5b9adce

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

app/Models/User.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,6 @@ public function scopeMostSubmissions(Builder $query, ?int $inLastDays = null)
377377
->groupBy('users.id')
378378
->having('articles_count', '>', 0)
379379
->orderBy('articles_count', 'desc');
380-
381-
// return $query->withCount(['articles as articles_count' => function ($query) use ($inLastDays) {
382-
// if ($inLastDays) {
383-
// $query->where('articles.approved_at', '>', now()->subDays($inLastDays));
384-
// }
385-
386-
// return $query;
387-
// }])->orderBy('articles_count', 'desc');
388380
}
389381

390382
public function scopeMostSolutionsInLastDays(Builder $query, int $days)

0 commit comments

Comments
 (0)