Skip to content

Commit

Permalink
Merge branch 'feat/r17' of https://github.com/KunLee76/nrf into feat/r17
Browse files Browse the repository at this point in the history
  • Loading branch information
KunLee76 committed Oct 26, 2024
2 parents 1746c15 + f1691f8 commit 03843b9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/commit-msg-check.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: 'Commit Message Check'

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- v*
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
golangci:
Expand Down
3 changes: 2 additions & 1 deletion internal/sbi/api_accesstoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ func (s *Server) HTTPAccessTokenRequest(c *gin.Context) {
break
}
}
if vt.Name() == "string" || vt.Name() == "NfType" {
if vt == reflect.TypeOf("") || vt == reflect.TypeOf(models.NrfNfManagementNfType_NRF) {
// Type is string
reflect.ValueOf(&accessTokenReq).Elem().FieldByName(name).SetString(value[0])
} else {
plmnid := models.PlmnId{}
Expand Down
3 changes: 2 additions & 1 deletion internal/sbi/processor/nf_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,10 @@ func buildFilter(queryParameters url.Values) bson.M {
// Pattern: '^[A-Fa-f0-9]{6}$'
if queryParameters["snssais"] != nil {
snssais := queryParameters["snssais"][0]
// snssais = [{"sst":1,"sd":"fedcba"}]

var snssaisBsonArray bson.A
slices := util.SnssaisToBsonM(snssais)
slices := util.SnssaisToBsonM(snssais[1 : len(snssais)-1])
for _, slice := range slices {
snssaisBsonArray = append(snssaisBsonArray, bson.M{"sNssais": bson.M{"$elemMatch": slice}})
}
Expand Down

0 comments on commit 03843b9

Please sign in to comment.