From 10c970b8fb020c3fae7f6ee13a20303b9f04d9ce Mon Sep 17 00:00:00 2001 From: Dot-Rar Date: Sat, 16 May 2020 17:49:19 +0100 Subject: [PATCH] bump db --- app/http/endpoints/root/callback.go | 6 ------ go.mod | 2 +- utils/discord/endpoints.go | 2 -- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/app/http/endpoints/root/callback.go b/app/http/endpoints/root/callback.go index 9cca347..98c5a13 100644 --- a/app/http/endpoints/root/callback.go +++ b/app/http/endpoints/root/callback.go @@ -80,18 +80,14 @@ func CallbackHandler(ctx *gin.Context) { var guilds []guild.Guild err, _ = userEndpoint.CurrentUserGuilds.Request(store, nil, nil, &guilds) - log.Info("1") - log.Infof("size: %d", len(guilds)) if err != nil { log.Error(err.Error()) handleRedirect(ctx) return } - log.Info("2") store.Set("has_guilds", true) store.Save() - log.Info("3") var wrappedGuilds []database.UserGuild @@ -110,8 +106,6 @@ func CallbackHandler(ctx *gin.Context) { UserPermissions: int32(guild.Permissions), }) } - log.Info("4") - log.Infof("size wrapped: %d", len(wrappedGuilds)) if err := dbclient.Client.UserGuilds.Set(currentUser.Id, wrappedGuilds); err != nil { log.Error(err.Error()) diff --git a/go.mod b/go.mod index a69e333..768b6c3 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.14 require ( github.com/BurntSushi/toml v0.3.1 github.com/TicketsBot/archiverclient v0.0.0-20200425115930-0ca198cc8306 - github.com/TicketsBot/database v0.0.0-20200516145701-e13f7e204cc6 + github.com/TicketsBot/database v0.0.0-20200516164834-2b61e9fa9b5a github.com/apex/log v1.1.2 github.com/boj/redistore v0.0.0-20180917114910-cd5dcc76aeff // indirect github.com/dgrijalva/jwt-go v3.2.0+incompatible diff --git a/utils/discord/endpoints.go b/utils/discord/endpoints.go index 12d0465..7bf8718 100644 --- a/utils/discord/endpoints.go +++ b/utils/discord/endpoints.go @@ -4,7 +4,6 @@ import ( "bytes" "encoding/json" "github.com/TicketsBot/GoPanel/config" - "github.com/apex/log" "github.com/gin-gonic/contrib/sessions" "github.com/pasztorpisti/qs" "github.com/pkg/errors" @@ -118,6 +117,5 @@ func (e *Endpoint) Request(store sessions.Session, contentType *ContentType, bod return err, nil } - log.Info(string(content)) return json.Unmarshal(content, response), res }