This commit is contained in:
2025-08-11 09:09:52 +03:30
parent 945a5aa061
commit 881ffe626a
4 changed files with 5 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ class SendSupervisorCheckStatsCommand extends Command
*
* @var string
*/
protected $signature = 'app:send-supervisor-check-stats';
protected $signature = 'report:send-supervisor-check-stats';
/**
* The console command description.
@@ -24,7 +24,7 @@ class SendSupervisorCheckStatsCommand extends Command
/**
* Execute the console command.
*/
public function handle(SendSupervisorCheckStatsReportService $service)
public function handle(SendSupervisorCheckStatsReportService $service): void
{
$service->execute();
$this->info('Done!');

View File

@@ -12,7 +12,7 @@ class CumulativeSupervisorPerformanceStatsController extends Controller
{
public function index(Request $request): JsonResponse
{
$query = DB::table('expert_performances')->selectRaw("
$query = DB::table('supervisor_performances')->selectRaw("
province_id,
province_name,
SUM(calls) AS total,
@@ -21,7 +21,7 @@ class CumulativeSupervisorPerformanceStatsController extends Controller
SUM(bad) AS bad
")
->groupBy('province_id', 'province_name')
->unionAll(DB::table('expert_performances')->selectRaw("
->unionAll(DB::table('supervisor_performances')->selectRaw("
0 as province_id,
'کشوری' as province_name,
SUM(calls) AS total,

Binary file not shown.

View File

@@ -3,11 +3,8 @@
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
Schedule::command('report:send-call-stats')->everyTwoMinutes();
Schedule::command('report:send-system-message-stats')->everyThreeMinutes();
Schedule::command('report:send-keypress-stats')->everyFourMinutes();
Schedule::command('report:send-people-message-stats')->everyFiveMinutes();
Schedule::command('report:send-supervisor-check-stats')->everyFiveMinutes();