Use the default view for metrics, as expected
This commit is contained in:
@@ -131,7 +131,7 @@ class StatusPageController extends AbstractApiController
|
||||
*/
|
||||
public function getMetrics(Metric $metric)
|
||||
{
|
||||
$type = Binput::get('filter', 'last_hour');
|
||||
$type = Binput::get('filter', AutoPresenter::decorate($metric)->view_name);
|
||||
$metrics = app(MetricRepository::class);
|
||||
|
||||
switch ($type) {
|
||||
|
||||
Reference in New Issue
Block a user