~xenrox/10man-api

14fed9252491d62fafa3ce23da5dd83e43ce84a8 — Thorben Günther 1 year, 6 months ago 7219420
Update deprecated functions

io/ioutil -> io
1 files changed, 2 insertions(+), 2 deletions(-)

M graph/schema.resolvers.go
M graph/schema.resolvers.go => graph/schema.resolvers.go +2 -2
@@ 9,7 9,7 @@ import (
	"encoding/json"
	"errors"
	"fmt"
	"io/ioutil"
	"io"
	"math/rand"
	"net/http"
	"time"


@@ 39,7 39,7 @@ func (r *mutationResolver) CreateUser(ctx context.Context, input model.NewUser) 
		return "", errors.New("wrong steamID64")
	}

	body, err := ioutil.ReadAll(resp.Body)
	body, err := io.ReadAll(resp.Body)
	if err != nil {
		return "", err
	}