From 47750064e333dec06ee4c703c2e35b4a5c4574cb Mon Sep 17 00:00:00 2001 From: ctrombley Date: Tue, 3 Dec 2019 23:07:19 -0800 Subject: [PATCH] fix: fix custom unmarshaling --- api/types.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/types.go b/api/types.go index c4934508..bdaf4743 100644 --- a/api/types.go +++ b/api/types.go @@ -70,6 +70,10 @@ func (t *AlertConditionTerm) UnmarshalJSON(data []byte) error { } t.Threshold = threshold + t.Duration = aux.Duration + t.Operator = aux.Operator + t.Priority = aux.Priority + t.TimeFunction = aux.TimeFunction return nil }