diff --git a/app/http/endpoints/api/whitelabelget.go b/app/http/endpoints/api/whitelabelget.go index 383546b..76c2f38 100644 --- a/app/http/endpoints/api/whitelabelget.go +++ b/app/http/endpoints/api/whitelabelget.go @@ -36,7 +36,7 @@ func WhitelabelGet(ctx *gin.Context) { } // Get errors - errors, err := database.Client.WhitelabelErrors.GetRecent(bot.BotId, 10) + errors, err := database.Client.WhitelabelErrors.GetRecent(bot.UserId, 10) if err != nil { ctx.JSON(500, gin.H{ "success": false, diff --git a/go.mod b/go.mod index f2207e4..3648a34 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/BurntSushi/toml v0.3.1 github.com/TicketsBot/archiverclient v0.0.0-20200425115930-0ca198cc8306 github.com/TicketsBot/common v0.0.0-20200529141045-7426ad13f1a4 - github.com/TicketsBot/database v0.0.0-20200612173941-6a5a0e72b1c2 + github.com/TicketsBot/database v0.0.0-20200612175645-63696c6f8675 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