Fix compilation
This commit is contained in:
parent
c42808f38d
commit
2750d01ed1
@ -101,7 +101,7 @@ func WhitelabelPost() func(*gin.Context) {
|
||||
|
||||
if _, err := rest.EditCurrentApplication(context.Background(), data.Token, nil, editData); err != nil {
|
||||
// TODO: Use a transaction
|
||||
if err := dbclient.Client.Whitelabel.Delete(c, bot.Id); err != nil {
|
||||
if _, err := dbclient.Client.Whitelabel.Delete(c, bot.Id); err != nil {
|
||||
_ = c.AbortWithError(http.StatusInternalServerError, app.NewServerError(err))
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user