Fix order-of-magnitude bug in DTO conversion (#53690)

pull/53701/head
Alexander Weaver 3 years ago committed by GitHub
parent 943cdea855
commit ccd41df603
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/services/ngalert/api/tooling/definitions/provisioning_alert_rules.go

@ -128,7 +128,7 @@ func NewAlertRule(rule models.AlertRule, provenance models.Provenance) Provision
FolderUID: rule.NamespaceUID,
RuleGroup: rule.RuleGroup,
Title: rule.Title,
For: model.Duration(rule.For.Seconds()),
For: model.Duration(rule.For),
Condition: rule.Condition,
Data: rule.Data,
Updated: rule.Updated,

Loading…
Cancel
Save