fix: remove debug fmt.Printlns
This commit is contained in:
parent
b9101e260b
commit
8df95a78ef
|
@ -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()).
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue