fix(apps): display app icon for tasks for boltdb

This commit is contained in:
fiftin 2024-07-10 18:09:13 +05:00
parent 6f2f1a6eb4
commit c75aaaa2a3
No known key found for this signature in database
GPG Key ID: 044381366A5D4731
2 changed files with 2 additions and 1 deletions

View File

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

View File

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