File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Filament/Resources/ReportResource/Actions Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ private function generateReport(array $data): void
354354 match ($ type ) {
355355 ReportType::POINTS => PointsReports::dispatch ($ report ),
356356 ReportType::PROBLEMS => ProblemReports::dispatch ($ report ),
357- ReportType::USER_ACTIVITY => UserActivityReports::dispatch ($ report ),
357+ // ReportType::USER_ACTIVITY => UserActivityReports::dispatch($report),
358358 ReportType::TOP_USERS => TopUsersReports::dispatch ($ report ),
359359 };
360360 Notification::make ()
Original file line number Diff line number Diff line change 1313use Filament \Notifications \Actions \Action ;
1414use Filament \Notifications \Notification ;
1515use Illuminate \Contracts \Queue \ShouldQueue ;
16- use Illuminate \Database \Eloquent \Builder ;
16+ use Illuminate \Database \Query \Builder ;
1717use Illuminate \Foundation \Queue \Queueable ;
1818use Illuminate \Support \Facades \DB ;
1919
@@ -45,8 +45,8 @@ public function handle(): void
4545 ->select ([DB ::raw ('count(*) as total ' ), 'user_id ' ])
4646 ->whereDate ('created_at ' , '>= ' , $ dates ['start_date ' ])
4747 ->whereDate ('created_at ' , '<= ' , $ dates ['end_date ' ])
48- ->when ($ structure ['contribution_type ' ] === 'points ' , fn (Builder $ q ) => $ q ->where ('contribution_type ' , 'points ' ))
49- ->when ($ structure ['contribution_type ' ] === 'problems ' , fn (Builder $ q ) => $ q ->where ('contribution_type ' , 'problems ' ))
48+ ->when ($ structure ['contribution_type ' ] === 'points ' , fn (Builder $ q ) => $ q ->where ('model_type ' , 'place ' ))
49+ ->when ($ structure ['contribution_type ' ] === 'problems ' , fn (Builder $ q ) => $ q ->where ('model_type ' , 'problem ' ))
5050 ->groupBy ('user_id ' );
5151
5252// $query = $query
You can’t perform that action at this time.
0 commit comments