fix(be): do not check active flag of schedule if repo id provided

This commit is contained in:
Denis Gukov 2024-08-10 21:22:19 +05:00
parent a5ea39e229
commit 4b966a7c28
2 changed files with 2 additions and 1 deletions

View File

@ -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
}

View File

@ -580,6 +580,7 @@ export default {
template_id: newItem ? newItem.id : this.itemId,
cron_format: this.cronFormat,
repository_id: this.cronRepositoryId,
active: true,
},
});
}