Skip to content

Commit 7418be3

Browse files
committed
fix(pro): missed args
1 parent 1b85880 commit 7418be3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func Route(
107107
terraformInventoryController := proProjects.NewTerraformInventoryController(terraformStore)
108108
userController := NewUserController(subscriptionService)
109109
usersController := NewUsersController(subscriptionService)
110-
subscriptionController := proApi.NewSubscriptionController()
110+
subscriptionController := proApi.NewSubscriptionController(store)
111111
projectRunnerController := proProjects.NewProjectRunnerController()
112112

113113
r := mux.NewRouter()

pro/api/subscriptions.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package api
22

33
import (
4+
"github.com/semaphoreui/semaphore/db"
45
"github.com/semaphoreui/semaphore/pro_interfaces"
56
"net/http"
67
)
78

8-
func NewSubscriptionController() pro_interfaces.SubscriptionController {
9+
func NewSubscriptionController(optionsRepo db.OptionsManager) pro_interfaces.SubscriptionController {
910
return &subscriptionControllerImpl{}
1011
}
1112

0 commit comments

Comments
 (0)