Skip to content

Commit

Permalink
fix: two layer params name
Browse files Browse the repository at this point in the history
  • Loading branch information
andy89923 committed Oct 20, 2024
1 parent 29ebf2d commit 7633aa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/sbi/api_subscriberdatamanagement.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ func (s *Server) HandleSubscribe(c *gin.Context) {

logger.SdmLog.Infof("Handle Subscribe")

supi := c.Params.ByName("ueId")

supi := c.Params.ByName("supi")
s.Processor().SubscribeProcedure(c, &sdmSubscriptionReq, supi)
}

Expand Down Expand Up @@ -469,6 +468,8 @@ func (s *Server) TwoLayerPathHandlerFunc(c *gin.Context) {
supi := c.Param("supi")
op := c.Param("subscriptionId")

logger.ConsumerLog.Errorln("TwoLayerPathHandlerFunc, ", supi, op)

// for "/shared-data-subscriptions/:subscriptionId"
if supi == "shared-data-subscriptions" && http.MethodDelete == c.Request.Method {
s.HandleUnsubscribeForSharedData(c)
Expand Down
1 change: 1 addition & 0 deletions internal/sbi/processor/subscriber_data_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ func (p *Processor) SubscribeProcedure(c *gin.Context, sdmSubscription *models.S
}
var createSdmSubscriptionsRequest Nudr_DataRepository.CreateSdmSubscriptionsRequest
createSdmSubscriptionsRequest.SdmSubscription = sdmSubscription
createSdmSubscriptionsRequest.UeId = &supi
sdmSubscriptionResp, err := clientAPI.SDMSubscriptionsCollectionApi.CreateSdmSubscriptions(
ctx, &createSdmSubscriptionsRequest)
if err != nil {
Expand Down

0 comments on commit 7633aa9

Please sign in to comment.