Skip to content

Commit

Permalink
fix(apps): display app icon for tasks for boltdb
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Jul 10, 2024
1 parent 6f2f1a6 commit c75aaaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion db/Task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
1 change: 1 addition & 0 deletions db/bolt/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c75aaaa

Please sign in to comment.