Skip to content

Commit

Permalink
Merge pull request #135 from ashwin63/main
Browse files Browse the repository at this point in the history
 fix: subscription not sent
  • Loading branch information
ianchen0119 authored Jul 23, 2024
2 parents 4f48895 + 08f98cc commit 9443d1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/sbi/processor/event_exposure.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ func (p *Processor) CreateAMFEventSubscriptionProcedure(createEventSubscription

createdEventSubscription := &models.AmfCreatedEventSubscription{}
subscription := createEventSubscription.Subscription
if subscription == nil {
problemDetails := &models.ProblemDetails{
Status: http.StatusBadRequest,
Cause: "SUBSCRIPTION_EMPTY",
}
return nil, problemDetails
}
contextEventSubscription := &context.AMFContextEventSubscription{}
contextEventSubscription.EventSubscription = *subscription
var isImmediate bool
Expand Down

0 comments on commit 9443d1b

Please sign in to comment.