X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fresthooks%2Fresthooks.go;h=dea70c91c5a9e287212dd337dba2ce3163a9c2b2;hb=refs%2Fchanges%2F95%2F2995%2F4;hp=471eec144d905dba0987bfad1bff846227a3d012;hpb=b3048135f7118568098dcbc4081b4f7f4b2c589e;p=ric-plt%2Fappmgr.git diff --git a/pkg/resthooks/resthooks.go b/pkg/resthooks/resthooks.go index 471eec1..dea70c9 100755 --- a/pkg/resthooks/resthooks.go +++ b/pkg/resthooks/resthooks.go @@ -22,14 +22,14 @@ package resthooks import ( "bytes" "encoding/json" - sdl "gerrit.oran-osc.org/r/ric-plt/sdlgo" + sdl "gerrit.o-ran-sc.org/r/ric-plt/sdlgo" cmap "github.com/orcaman/concurrent-map" "github.com/segmentio/ksuid" "net/http" "time" - "gerrit.oran-osc.org/r/ric-plt/appmgr/pkg/appmgr" - "gerrit.oran-osc.org/r/ric-plt/appmgr/pkg/models" + "gerrit.o-ran-sc.org/r/ric-plt/appmgr/pkg/appmgr" + "gerrit.o-ran-sc.org/r/ric-plt/appmgr/pkg/models" ) func NewResthook(restoreData bool) *Resthook { @@ -51,7 +51,8 @@ func (rh *Resthook) AddSubscription(sr models.SubscriptionRequest) *models.Subsc r := v.Val.(SubscriptionInfo).req if *r.Data.TargetURL == *sr.Data.TargetURL && r.Data.EventType == sr.Data.EventType { appmgr.Logger.Info("Similar subscription already exists!") - return &models.SubscriptionResponse{} + resp := v.Val.(SubscriptionInfo).resp + return &resp } }