diff --git a/api_test.go b/api_test.go index 0df4648..537aa43 100644 --- a/api_test.go +++ b/api_test.go @@ -123,7 +123,7 @@ func setup(t *testing.T) *api.RestApi { t.Fatal(err) } return &api.RestApi{ - JobRepository: &repository.JobRepository{db}, + JobRepository: &repository.JobRepository{DB: db}, Resolver: resolver, } } diff --git a/server.go b/server.go index de2b847..61f3dc3 100644 --- a/server.go +++ b/server.go @@ -308,7 +308,7 @@ func main() { graphQLPlayground := playground.Handler("GraphQL playground", "/query") api := &api.RestApi{ - JobRepository: &repository.JobRepository{db}, + JobRepository: &repository.JobRepository{DB: db}, AsyncArchiving: programConfig.AsyncArchiving, Resolver: resolver, MachineStateDir: programConfig.MachineStateDir,