diff --git a/cmd/telemetry-api/main.go b/cmd/telemetry-api/main.go index ef502d7..9817301 100644 --- a/cmd/telemetry-api/main.go +++ b/cmd/telemetry-api/main.go @@ -67,7 +67,7 @@ func main() { cfg := graph.Config{Resolvers: resolver} cfg.Directives.RequiresVehicleToken = auth.NewVehicleTokenCheck(settings.VehicleNFTAddress) - cfg.Directives.RequiresManufacturerToken = auth.NewManufacturerTokenCheck(settings.VehicleNFTAddress, idService) + cfg.Directives.RequiresManufacturerToken = auth.NewManufacturerTokenCheck(settings.ManufacturerNFTAddress, idService) cfg.Directives.RequiresPrivileges = auth.PrivilegeCheck cfg.Directives.IsSignal = noOp cfg.Directives.HasAggregation = noOp