From 228be5dbddcb77e369059782b3e6d93227f9ab54 Mon Sep 17 00:00:00 2001 From: Charbel El Jalkh Date: Wed, 22 Apr 2020 16:49:04 +1000 Subject: [PATCH 1/2] Update PendingJobsController.php Should this be countPending as it is in the PendingController and you would want to get the total number of pending jobs and not completed job --- src/Http/Controllers/PendingJobsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/PendingJobsController.php b/src/Http/Controllers/PendingJobsController.php index f9c27a3b..697e3109 100644 --- a/src/Http/Controllers/PendingJobsController.php +++ b/src/Http/Controllers/PendingJobsController.php @@ -43,7 +43,7 @@ public function index(Request $request) return [ 'jobs' => $jobs, - 'total' => $this->jobs->countRecent(), + 'total' => $this->jobs->countPending(), ]; } From 41a5e59502d5a379e85250859613dd2109dbef37 Mon Sep 17 00:00:00 2001 From: Charbel El Jalkh Date: Wed, 22 Apr 2020 19:27:36 +1000 Subject: [PATCH 2/2] Update PendingJobsController.php Update docblock --- src/Http/Controllers/PendingJobsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/PendingJobsController.php b/src/Http/Controllers/PendingJobsController.php index 697e3109..fabe058a 100644 --- a/src/Http/Controllers/PendingJobsController.php +++ b/src/Http/Controllers/PendingJobsController.php @@ -28,7 +28,7 @@ public function __construct(JobRepository $jobs) } /** - * Get all of the recent jobs. + * Get all of the pending jobs. * * @param \Illuminate\Http\Request $request * @return array