Skip to content

Commit

Permalink
fix permissions v2 config name
Browse files Browse the repository at this point in the history
  • Loading branch information
franzmueller committed Nov 26, 2024
1 parent 27b84dd commit 6264c63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"server_port": "8080",
"jwt_pub_rsa": "",
"users_topic": "user",
"permission_v2_url": "http://permv2.permissions:8080",
"permissions_v2_url": "http://permv2.permissions:8080",
"device_repo_url": "http://device-repo:8080",
"mongo_url": "mongodb://localhost:27017",
"mongo_table": "importrepository",
Expand Down
2 changes: 1 addition & 1 deletion lib/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type Config struct {
Validate bool `json:"validate"`
UsersTopic string `json:"users_topic"`
RepublishStartup bool `json:"republish_startup"`
PermissionV2Url string `json:"permissions_v2_url"`
PermissionsV2Url string `json:"permissions_v2_url"`
}

// loads config from json in location and used environment variables (e.g ZookeeperUrl --> ZOOKEEPER_URL)
Expand Down
2 changes: 1 addition & 1 deletion lib/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
)

func Start(conf config.Config, ctx context.Context, wg *sync.WaitGroup) (err error) {
return StartWithPermv2Client(conf, ctx, wg, permV2.New(conf.PermissionV2Url))
return StartWithPermv2Client(conf, ctx, wg, permV2.New(conf.PermissionsV2Url))
}

func StartWithPermv2Client(conf config.Config, ctx context.Context, wg *sync.WaitGroup, permV2Client permV2.Client) (err error) {
Expand Down

0 comments on commit 6264c63

Please sign in to comment.