fix typo for schedule name
This commit is contained in:
4
app.go
4
app.go
@@ -380,7 +380,7 @@ func (a *App) NextSchedule(now time.Time) (string, error) {
|
||||
}
|
||||
}
|
||||
if t.Year() < now.Year() || t.Month() != now.Month() {
|
||||
return "month", nil
|
||||
return "monthly", nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -395,7 +395,7 @@ func (a *App) NextSchedule(now time.Time) (string, error) {
|
||||
ny, nw := now.ISOWeek()
|
||||
ty, tw := t.ISOWeek()
|
||||
if ty < ny || tw < nw {
|
||||
return "month", nil
|
||||
return "weekly", nil
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user