mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-24 22:06:43 +01:00
fix(be): do not check active flag of schedule if repo id provided
This commit is contained in:
parent
a5ea39e229
commit
4b966a7c28
@ -111,7 +111,7 @@ func (p *SchedulePool) Refresh() {
|
||||
p.locker.Lock()
|
||||
p.clear()
|
||||
for _, schedule := range schedules {
|
||||
if !schedule.Active {
|
||||
if schedule.RepositoryID == nil && !schedule.Active {
|
||||
continue
|
||||
}
|
||||
|
||||
|
@ -580,6 +580,7 @@ export default {
|
||||
template_id: newItem ? newItem.id : this.itemId,
|
||||
cron_format: this.cronFormat,
|
||||
repository_id: this.cronRepositoryId,
|
||||
active: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user