Fix compilation

This commit is contained in:
rxdn 2024-11-16 20:32:00 +00:00
parent c42808f38d
commit 2750d01ed1

View File

@ -101,7 +101,7 @@ func WhitelabelPost() func(*gin.Context) {
if _, err := rest.EditCurrentApplication(context.Background(), data.Token, nil, editData); err != nil { if _, err := rest.EditCurrentApplication(context.Background(), data.Token, nil, editData); err != nil {
// TODO: Use a transaction // 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)) _ = c.AbortWithError(http.StatusInternalServerError, app.NewServerError(err))
return return
} }