From 3ca1ae5d702001b89e8e256265fe3963eff52caa Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 26 Sep 2015 14:22:02 +0100 Subject: [PATCH] calc_type can only be 0 or 1 --- app/Commands/Metric/UpdateMetricCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Commands/Metric/UpdateMetricCommand.php b/app/Commands/Metric/UpdateMetricCommand.php index 3c4674fe..a858b055 100644 --- a/app/Commands/Metric/UpdateMetricCommand.php +++ b/app/Commands/Metric/UpdateMetricCommand.php @@ -82,7 +82,7 @@ class UpdateMetricCommand 'description' => 'string', 'display_chart' => 'boolean', 'default_value' => 'numeric', - 'calc_type' => 'integer', + 'calc_type' => 'integer|in:0,1', 'display_chart' => 'integer', 'places' => 'numeric|min:0|max:4', ];