mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
fix(apps): display app icon for tasks for boltdb
This commit is contained in:
parent
6f2f1a6eb4
commit
c75aaaa2a3
@ -107,7 +107,7 @@ type TaskWithTpl struct {
|
||||
TemplatePlaybook string `db:"tpl_playbook" json:"tpl_playbook"`
|
||||
TemplateAlias string `db:"tpl_alias" json:"tpl_alias"`
|
||||
TemplateType TemplateType `db:"tpl_type" json:"tpl_type"`
|
||||
TemplateApp string `db:"tpl_app" json:"tpl_app"`
|
||||
TemplateApp TemplateApp `db:"tpl_app" json:"tpl_app"`
|
||||
UserName *string `db:"user_name" json:"user_name"`
|
||||
BuildTask *Task `db:"-" json:"build_task"`
|
||||
}
|
||||
|
@ -167,6 +167,7 @@ func (d *BoltDb) getTasks(projectID int, templateIDs []int, params db.RetrieveQu
|
||||
tasksWithTpl[i].TemplatePlaybook = tpl.Playbook
|
||||
tasksWithTpl[i].TemplateAlias = tpl.Name
|
||||
tasksWithTpl[i].TemplateType = tpl.Type
|
||||
tasksWithTpl[i].TemplateApp = tpl.App
|
||||
if task.UserID != nil {
|
||||
usr, ok := users[*task.UserID]
|
||||
if !ok {
|
||||
|
Loading…
Reference in New Issue
Block a user