mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 17:54:07 +01:00
Improve cron list (#3947)
This commit is contained in:
@@ -35,7 +35,7 @@ func (s storage) CronFind(repo *model.Repo, id int64) (*model.Cron, error) {
|
||||
|
||||
func (s storage) CronList(repo *model.Repo, p *model.ListOptions) ([]*model.Cron, error) {
|
||||
var crons []*model.Cron
|
||||
return crons, s.paginate(p).Where("repo_id = ?", repo.ID).Find(&crons)
|
||||
return crons, s.paginate(p).Where("repo_id = ?", repo.ID).OrderBy("name").Find(&crons)
|
||||
}
|
||||
|
||||
func (s storage) CronUpdate(_ *model.Repo, cron *model.Cron) error {
|
||||
|
||||
Reference in New Issue
Block a user