fixed post count

This commit is contained in:
2026-01-18 19:13:05 +01:00
parent bc893b644d
commit 653905d5e2
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(),
]);
}