Commit b0375801 authored by Ikram Haq's avatar Ikram Haq
Browse files

fix minor issue Add event detail in event notification

parent 75a88eb9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1848,12 +1848,14 @@ func checkSerAvailNotification(sInfo *ServiceInfo, mep string, changeType CapifE
				}
			}
		}

		event_detail := &CapifEventDetail{}
		event_detail.ApiIds = append(event_detail.ApiIds, sInfo.SerInstanceId)
		// Create a new EventNotification instance
		notif := &EventNotification{
			SubscriptionId: sub.Cfg.Id,
			EventDetail:    event_detail,
		}
		event_detail := &CapifEventDetail{}
		event_detail.ApiIds = append(event_detail.ApiIds, sInfo.SerInstanceId)
		// Set the event type based on changeType
		var eventType CapifEvent
		switch changeType {