From df28c813a8ff016eff2303f228e7b5b1133e4ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Sun, 14 Nov 2021 13:14:46 +0100 Subject: [PATCH] Move helper code out of schema.resolvers.go --- graph/helpers.go | 4 ++++ graph/schema.resolvers.go | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 graph/helpers.go diff --git a/graph/helpers.go b/graph/helpers.go new file mode 100644 index 0000000..29f4fc8 --- /dev/null +++ b/graph/helpers.go @@ -0,0 +1,4 @@ +package graph + +var voteMaps []string +var voteStatus string diff --git a/graph/schema.resolvers.go b/graph/schema.resolvers.go index 6dd5716..1b1f155 100644 --- a/graph/schema.resolvers.go +++ b/graph/schema.resolvers.go @@ -22,10 +22,6 @@ import ( "git.xenrox.net/~xenrox/10man-api/logic" ) -// save current map vote -var voteMaps []string -var voteStatus string - func (r *mutationResolver) CreateUser(ctx context.Context, input model.NewUser) (string, error) { type Elo struct { Elo int `json:"Elo"` -- 2.44.0