From e11156899c9bc63687edbb56f5e6c972758d5884 Mon Sep 17 00:00:00 2001 From: Ronni Skansing Date: Wed, 17 Dec 2025 19:09:10 +0100 Subject: [PATCH] fix disable webhook on update Signed-off-by: Ronni Skansing --- backend/service/campaign.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/backend/service/campaign.go b/backend/service/campaign.go index 07bc7a3..1a2dfac 100644 --- a/backend/service/campaign.go +++ b/backend/service/campaign.go @@ -1391,8 +1391,13 @@ func (c *Campaign) UpdateByID( if v, err := incoming.RecipientGroupIDs.Get(); err == nil { current.RecipientGroupIDs.Set(v) } - if v, err := incoming.WebhookID.Get(); err == nil { - current.WebhookID.Set(v) + // handle webhook ID + if incoming.WebhookID.IsSpecified() { + if incoming.WebhookID.IsNull() { + current.WebhookID.SetNull() + } else { + current.WebhookID.Set(incoming.WebhookID.MustGet()) + } } // check there is atleast one valid group