From 172c7173d3586e07cc69aa0e63eed3938c0a227e Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Mon, 7 Feb 2022 14:26:43 +0100 Subject: [PATCH] Fix linter error --- api_test.go | 2 +- server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,