From 467d29ca11c0bc72e95c73976477523dc921fc82 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sun, 10 Jul 2016 10:37:00 +0100 Subject: [PATCH] Use numeric validation for metric points. Fixes #1950 --- app/Bus/Commands/Metric/AddMetricPointCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Bus/Commands/Metric/AddMetricPointCommand.php b/app/Bus/Commands/Metric/AddMetricPointCommand.php index 9be532759f8a..ae339585ba30 100644 --- a/app/Bus/Commands/Metric/AddMetricPointCommand.php +++ b/app/Bus/Commands/Metric/AddMetricPointCommand.php @@ -42,7 +42,7 @@ final class AddMetricPointCommand * @var string[] */ public $rules = [ - 'value' => 'int', + 'value' => 'numeric', 'created_at' => 'string', ];