mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-24 22:06:43 +01:00
Don't return Project schedules in GET template schedules
This commit is contained in:
parent
aceeb459f2
commit
2910f8faf3
@ -62,7 +62,7 @@ func (d *BoltDb) GetProjectSchedules(projectID int) (schedules []db.ScheduleWith
|
|||||||
|
|
||||||
func (d *BoltDb) GetTemplateSchedules(projectID int, templateID int) (schedules []db.Schedule, err error) {
|
func (d *BoltDb) GetTemplateSchedules(projectID int, templateID int) (schedules []db.Schedule, err error) {
|
||||||
schedules, err = d.getProjectSchedules(projectID, func(s db.Schedule) bool {
|
schedules, err = d.getProjectSchedules(projectID, func(s db.Schedule) bool {
|
||||||
return s.TemplateID == templateID
|
return s.TemplateID == templateID && s.RepositoryID != nil
|
||||||
})
|
})
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user