Don't return Project schedules in GET template schedules

This commit is contained in:
Brian Zoetewey 2024-10-24 14:48:17 -04:00
parent aceeb459f2
commit 2910f8faf3

View File

@ -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) {
schedules, err = d.getProjectSchedules(projectID, func(s db.Schedule) bool {
return s.TemplateID == templateID
return s.TemplateID == templateID && s.RepositoryID != nil
})
return