Permalink
Browse files

remove unused queue history loading

  • Loading branch information...
laurencei committed May 12, 2018
1 parent 8f4fb5d commit 65289a2760710405cd9f327a31dfc7c3e4f294ab
Showing with 1 addition and 9 deletions.
  1. +1 −1 app/Http/Controllers/DashboardController.php
  2. +0 −8 app/Repo/Queue.php
@@ -23,7 +23,7 @@ public function index()
->withTransformer(new ChartTransformer)
->withNotifications(History::orderBy('acknowledged')->orderBy('created_at', 'desc')->get())
->withStatuses(Statuses::all())
->withQueues(Queue::with('latest_history')->get())
->withQueues(Queue::all())
->withSchedulers(Scheduler::all());
}
}
@@ -30,14 +30,6 @@ public function history()
return $this->hasMany(History::class)->orderBy('date')->orderBy('hour');
}
/**
* Get the latest queue history that belong to this queue.
*/
public function latest_history()
{
return $this->hasOne(History::class)->limit(1)->orderBy('date')->orderBy('hour');
}
/**
* Set the queue heartbeat to now.
*/

0 comments on commit 65289a2

Please sign in to comment.