mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 23:39:56 +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
|
var tasks []TaskWithTpl
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
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 {
|
if len(tasks) > 0 {
|
||||||
template.LastTask = &tasks[0]
|
template.LastTask = &tasks[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user