From 12dc6d6fa9b8e018e1365697a346994477a2ef3b Mon Sep 17 00:00:00 2001 From: Ikram Ul Haq Date: Thu, 5 Sep 2024 09:56:09 +0500 Subject: [PATCH] Fix issue in PUT method to update the CAPIF event subscription --- .../server/capif-mgmt/service-mgmt.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go b/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go index eb6d0f93c..9eb71823a 100644 --- a/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go +++ b/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go @@ -940,21 +940,21 @@ func applicationsSubscriptionsPUT(w http.ResponseWriter, r *http.Request) { if updatedSub.NotificationDestination != "" { sub.Cfg.NotifyUrl = updatedSub.NotificationDestination } - if updatedSub.RequestTestNotification { - sub.Cfg.RequestTestNotif = true - } + // if updatedSub.RequestTestNotification { + // sub.Cfg.RequestTestNotif = true + // } // if updatedSub.RequestWebsocketUri { // sub.Cfg.RequestWebsocketUri = true // } else { // sub.Cfg.RequestWebsocketUri = false // } // Update event filters if provided - if updatedSub.EventFilters != nil { - sub.Cfg.EventFilters = convertEventFiltersToStrings(updatedSub.EventFilters) - } - if updatedSub.Events != nil { - sub.Cfg.CapifEvent = convertEventToStrings(updatedSub.Events) - } + // if updatedSub.EventFilters != nil { + // sub.Cfg.EventFilters = convertEventFiltersToStrings(updatedSub.EventFilters) + // } + // if updatedSub.Events != nil { + // sub.Cfg.CapifEvent = convertEventToStrings(updatedSub.Events) + // } // Update the subscription in the manager err = subMgr.UpdateSubscription(sub) if err != nil { -- GitLab