mirror of
https://github.com/grafana/grafana.git
synced 2026-08-10 05:08:16 -05:00
API: Return 400 on invalid Annotation requests (#32429)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
func validateTimeRange(item *annotations.Item) error {
|
||||
if item.EpochEnd == 0 {
|
||||
if item.Epoch == 0 {
|
||||
return errors.New("missing time range")
|
||||
return annotations.ErrTimerangeMissing
|
||||
}
|
||||
item.EpochEnd = item.Epoch
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user