Fix linter error

This commit is contained in:
Jan Eitzinger 2022-02-07 14:26:43 +01:00
parent cb70711c15
commit 172c7173d3
2 changed files with 2 additions and 2 deletions

View File

@ -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,
}
}

View File

@ -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,