From 8df95a78efd2b3a5db2ae13afa366e5bd7e6a630 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 20 Nov 2022 14:33:44 +0100 Subject: [PATCH] fix: remove debug fmt.Printlns --- backend/db/user.go | 3 --- backend/routes/auth/discord.go | 3 --- 2 files changed, 6 deletions(-) diff --git a/backend/db/user.go b/backend/db/user.go index 67bb0de..41a9ce4 100644 --- a/backend/db/user.go +++ b/backend/db/user.go @@ -2,7 +2,6 @@ package db import ( "context" - "fmt" "regexp" "emperror.dev/errors" @@ -100,8 +99,6 @@ func (db *DB) DiscordUser(ctx context.Context, discordID string) (u User, err er } func (u *User) UpdateFromDiscord(ctx context.Context, db pgxscan.Querier, du *discordgo.User) error { - fmt.Println(du.ID, du.String()) - builder := sq.Update("users"). Set("discord", du.ID). Set("discord_username", du.String()). diff --git a/backend/routes/auth/discord.go b/backend/routes/auth/discord.go index 7e89f2e..819f6d1 100644 --- a/backend/routes/auth/discord.go +++ b/backend/routes/auth/discord.go @@ -1,7 +1,6 @@ package auth import ( - "fmt" "net/http" "os" @@ -165,8 +164,6 @@ func (s *Server) discordSignup(w http.ResponseWriter, r *http.Request) error { return server.APIError{Code: server.ErrInvalidTicket} } - fmt.Println(du.String()) - u, err := s.DB.CreateUser(ctx, tx, req.Username) if err != nil { return errors.Wrap(err, "creating user")