use user id
This commit is contained in:
parent
e568219288
commit
e508294e81
@ -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,
|
||||
|
2
go.mod
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user