Fix typo in cronjob (#1759)

mine
Maurizio Pasquinelli 2022-09-17 15:42:47 +02:00 committed by GitHub
parent 58152cbd4a
commit 6342ee537d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -150,10 +150,10 @@ func (c *CronJob) makeSuspendForm(sel string, suspend bool) *tview.Form {
ctx, cancel := context.WithTimeout(context.Background(), c.App().Conn().Config().CallTimeout()) ctx, cancel := context.WithTimeout(context.Background(), c.App().Conn().Config().CallTimeout())
defer cancel() defer cancel()
if err := c.toggleSuspend(ctx, sel); err != nil { if err := c.toggleSuspend(ctx, sel); err != nil {
log.Error().Err(err).Msgf("CronJOb %s %s failed", sel, action) log.Error().Err(err).Msgf("CronJob %s %s failed", sel, action)
c.App().Flash().Err(err) c.App().Flash().Err(err)
} else { } else {
c.App().Flash().Infof("CronJOb %s %s successfully", sel, action) c.App().Flash().Infof("CronJob %s %s successfully", sel, action)
} }
}) })