From c4edd1c4ed3f9de1473dd1b567b907f533e6fb31 Mon Sep 17 00:00:00 2001 From: Khal Jouda <1508183+kjda@users.noreply.github.com> Date: Thu, 21 Jan 2021 11:07:34 +0100 Subject: [PATCH] fixing sslExpirythreshold --- checkly.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkly.go b/checkly.go index 844cc18..a6469a4 100644 --- a/checkly.go +++ b/checkly.go @@ -518,7 +518,7 @@ func payloadFromAlertChannel(ac AlertChannel) map[string]interface{} { "sendFailure": ac.SendFailure, "sslExpiry": ac.SSLExpiry, } - if ac.SSLExpiry != nil { + if ac.SSLExpiryThreshold != nil { payload["sslExpiryThreshold"] = ac.SSLExpiryThreshold } return payload