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

This commit is contained in:
Alexander Weaver
2022-08-12 15:02:40 -05:00
committed by GitHub
parent 943cdea855
commit ccd41df603

View File

@@ -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,