diff --git a/go.mod b/go.mod index 3b1a9c5..518bb02 100644 --- a/go.mod +++ b/go.mod @@ -6,12 +6,12 @@ toolchain go1.23.3 require ( github.com/SENERGY-Platform/developer-notifications v0.0.4 - github.com/SENERGY-Platform/device-repository v0.1.51 - github.com/SENERGY-Platform/event-deployment v0.0.16 - github.com/SENERGY-Platform/event-worker v1.0.18 + github.com/SENERGY-Platform/device-repository v0.1.52 + github.com/SENERGY-Platform/event-deployment v0.0.18 + github.com/SENERGY-Platform/event-worker v1.0.19 github.com/SENERGY-Platform/models/go v0.0.0-20241007061544-de7132ae94e4 github.com/SENERGY-Platform/permissions-v2 v0.0.27 - github.com/SENERGY-Platform/process-deployment v0.0.11 + github.com/SENERGY-Platform/process-deployment v0.0.12 github.com/SENERGY-Platform/service-commons v0.0.0-20240813072046-91b3195dd8fc github.com/eclipse/paho.mqtt.golang v1.4.3 github.com/golang-jwt/jwt v3.2.2+incompatible diff --git a/go.sum b/go.sum index b5b7a80..ec4d57a 100644 --- a/go.sum +++ b/go.sum @@ -12,18 +12,18 @@ github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERo github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/SENERGY-Platform/developer-notifications v0.0.4 h1:SmblhfWavNhE1mDxzrkhmWl2AoPPqKD+7YcZCQ7a5Tg= github.com/SENERGY-Platform/developer-notifications v0.0.4/go.mod h1:8yJrYnAYMtPEPy89ULw8ivgG8orVhSnaLgyfDt0bdgg= -github.com/SENERGY-Platform/device-repository v0.1.51 h1:vy+4gvK/mhgbmTl8gXKwPcQFMHMwycywCMhhr6TbAx0= -github.com/SENERGY-Platform/device-repository v0.1.51/go.mod h1:36pibGmG2igxgydf+deII/wiP1gWxF2/bgijDzwRriY= -github.com/SENERGY-Platform/event-deployment v0.0.16 h1:KdKVnqMsjHVSsABJ0NrC/DS2OQc/hbcwLLN6EkDG9l0= -github.com/SENERGY-Platform/event-deployment v0.0.16/go.mod h1:TVS+FjrVg2NZOqfhg1XxnbRCWQI5JwQZDK3e5esJt9k= -github.com/SENERGY-Platform/event-worker v1.0.18 h1:AlkEH+UM90VDQjoZV5pR5i1Vunp2l+BR6myI6AqeVzE= -github.com/SENERGY-Platform/event-worker v1.0.18/go.mod h1:B9u4a8GBx5FiGp62li7VJbvb9dNrnwP3f0HVXeZye8c= +github.com/SENERGY-Platform/device-repository v0.1.52 h1:JedGhrK3dm0x693jHAPgsn85iO9esjxJz9zgdyt/nis= +github.com/SENERGY-Platform/device-repository v0.1.52/go.mod h1:36pibGmG2igxgydf+deII/wiP1gWxF2/bgijDzwRriY= +github.com/SENERGY-Platform/event-deployment v0.0.18 h1:P+0qqWnqBb7rzl7T6gesPARa3d2uD8l3VW1Qzk+kcyo= +github.com/SENERGY-Platform/event-deployment v0.0.18/go.mod h1:dV4kCxQfPTGCrP3FXbovQE27MySMxMzCyMIC3Xmak8Q= +github.com/SENERGY-Platform/event-worker v1.0.19 h1:mXFEjzJfSjWdDjEWUv2qNLpsW/15dyL3GvZH7CqhB/g= +github.com/SENERGY-Platform/event-worker v1.0.19/go.mod h1:vSiP9Ug7AU9O6LYBSTSDG8r8Lhd5VZ6WlBrGRIvjf30= github.com/SENERGY-Platform/models/go v0.0.0-20241007061544-de7132ae94e4 h1:zS65f1cmjAoBQUA432nmJl2TXAwqqqJMz7sp2DHLAGc= github.com/SENERGY-Platform/models/go v0.0.0-20241007061544-de7132ae94e4/go.mod h1:bCREPNRN4P8oxLgpC3/ZKK4jXSy4MSPXoiomhohE+aw= github.com/SENERGY-Platform/permissions-v2 v0.0.27 h1:4Sf5zNW0KMrSSJrv90MmyKD5RMnS8CT26yE7W9Za/x0= github.com/SENERGY-Platform/permissions-v2 v0.0.27/go.mod h1:w5AghpFIQ2Hi+HKfcuqXcizR4pCYuMLXcWAdAmOPAF4= -github.com/SENERGY-Platform/process-deployment v0.0.11 h1:vmHk3BuTCzaucYMgafHm5Rk5+MO48kHuq9nnQtKlB0M= -github.com/SENERGY-Platform/process-deployment v0.0.11/go.mod h1:eRWXc3pOfQbSNRtSgTzDGLi15Tgo/2w8pZ89M/RBK78= +github.com/SENERGY-Platform/process-deployment v0.0.12 h1:jsNTHuNjuWlimtv6A6KOBoO0FnEgXkx0pao853Hu7ik= +github.com/SENERGY-Platform/process-deployment v0.0.12/go.mod h1:0V9KCf6ewlkIB5i6mxl0CqZFZcL6Wd3IFVpWGt6b7pE= github.com/SENERGY-Platform/service-commons v0.0.0-20240813072046-91b3195dd8fc h1:FbGDfHiDukp8wD1w4YNxjwiDpSNkRUG+Ymq9jjz3Auc= github.com/SENERGY-Platform/service-commons v0.0.0-20240813072046-91b3195dd8fc/go.mod h1:1p2CQPNtler5leXqNgaOfr7DlgZUydrQlQYA97ycm4k= github.com/beevik/etree v1.4.0 h1:oz1UedHRepuY3p4N5OjE0nK1WLCqtzHf25bxplKOHLs= diff --git a/pkg/controller/networks.go b/pkg/controller/networks.go index eb0b2ce..094a039 100644 --- a/pkg/controller/networks.go +++ b/pkg/controller/networks.go @@ -31,7 +31,7 @@ type SearchHub = models.Hub func (this *Controller) ApiListNetworks(request *http.Request) (result []SearchHub, err error, errCode int) { token := request.Header.Get("Authorization") all := []SearchHub{} - all, err, errCode = devicerpo.NewClient(this.config.DeviceRepoUrl).ListHubs(token, devicerpo.HubListOptions{ + all, err, errCode = devicerpo.NewClient(this.config.DeviceRepoUrl, nil).ListHubs(token, devicerpo.HubListOptions{ Limit: 9999, Offset: 0, SortBy: "name.asc",