mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 15:29:28 +01:00
Update Template.go
This commit is contained in:
parent
75682fb1d4
commit
763bd6e562
@ -131,7 +131,7 @@ func FillTemplate(d Store, template *Template) (err error) {
|
||||
var tasks []TaskWithTpl
|
||||
if err != nil {
|
||||
return
|
||||
tasks, err = d.GetTemplateTasks(tpl.ProjectID, tpl.ID, RetrieveQueryParams{Count: 1})
|
||||
tasks, err = d.GetTemplateTasks(template.ProjectID, template.ID, RetrieveQueryParams{Count: 1})
|
||||
}
|
||||
if len(tasks) > 0 {
|
||||
template.LastTask = &tasks[0]
|
||||
|
Loading…
Reference in New Issue
Block a user