mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 08:02:18 +02:00
Fix cron migration (#4020)
This commit is contained in:
parent
eeec084293
commit
67a9c7991c
@ -42,8 +42,9 @@ var cronWithoutSec = xormigrate.Migration{
|
||||
continue
|
||||
}
|
||||
|
||||
c.Schedule = strings.SplitN(strings.TrimSpace(c.Schedule), " ", 2)[1]
|
||||
if _, err := sess.Update(c); err != nil {
|
||||
if _, err := sess.Update(&model.Cron{
|
||||
Schedule: strings.SplitN(strings.TrimSpace(c.Schedule), " ", 2)[1],
|
||||
}, c); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user