Skip to content
Snippets Groups Projects
Commit 12dc6d6f authored by Ikram Haq's avatar Ikram Haq
Browse files

Fix issue in PUT method to update the CAPIF event subscription

parent aa336de5
No related branches found
No related tags found
1 merge request!1Merge CAPIF into MEC Federation branch for ETSI SNS4SNS demo
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment