Skip to content

Commit e3fc086

Browse files
committed
Fixed typo should have been filterByDate not filterByDay.
1 parent 3347630 commit e3fc086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/DashboardController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function __invoke(PieChartService $pieChartService)
1313
{
1414
return Inertia::render('Dashboard', [
1515
'totalQuestions' => (int) PromptQuestion::whereHas('promptAnswer')->count(),
16-
'dailyQuestions' => (int) PromptQuestion::whereHas('promptAnswer')->filterByDay(now())->count(),
16+
'dailyQuestions' => (int) PromptQuestion::whereHas('promptAnswer')->filterByDate(now())->count(),
1717
'pieChartData' => $pieChartService
1818
->data(PromptAnswer::class, 'subject_category')
1919
->labels('subject_category')

0 commit comments

Comments
 (0)