Skip to content

Commit

Permalink
rename variable to match route
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Sep 10, 2020
1 parent 1093218 commit 4822955
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Http/Controllers/JobMetricsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ public function index()
/**
* Get metrics for a given job.
*
* @param string $slug
* @param string $id
* @return \Illuminate\Support\Collection
*/
public function show($slug)
public function show($id)
{
return collect($this->metrics->snapshotsForJob($slug))->map(function ($record) {
return collect($this->metrics->snapshotsForJob($id))->map(function ($record) {
$record->runtime = round($record->runtime / 1000, 3);
$record->throughput = (int) $record->throughput;

Expand Down
6 changes: 3 additions & 3 deletions src/Http/Controllers/QueueMetricsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ public function index()
/**
* Get metrics for a given queue.
*
* @param string $slug
* @param string $id
* @return \Illuminate\Support\Collection
*/
public function show($slug)
public function show($id)
{
return collect($this->metrics->snapshotsForQueue($slug))->map(function ($record) {
return collect($this->metrics->snapshotsForQueue($id))->map(function ($record) {
$record->runtime = round($record->runtime / 1000, 3);
$record->throughput = (int) $record->throughput;

Expand Down

0 comments on commit 4822955

Please sign in to comment.