fixed post count
Some checks failed
CI/CD Pipeline / test (push) Successful in 3s
CI/CD Pipeline / deploy (push) Failing after 1s

This commit is contained in:
Micha
2026-01-18 19:13:05 +01:00
parent 01b8dd1930
commit 79855e793e
2 changed files with 25 additions and 24 deletions

View File

@@ -13,7 +13,8 @@ class StatsController extends Controller
{
return response()->json([
'threads' => Thread::query()->withoutTrashed()->count(),
'posts' => Post::query()->withoutTrashed()->count(),
'posts' => Post::query()->withoutTrashed()->count()
+ Thread::query()->withoutTrashed()->count(),
'users' => User::query()->count(),
]);
}