From c75aaaa2a33cbb0f6ba2ec78e817628596780f35 Mon Sep 17 00:00:00 2001 From: fiftin Date: Wed, 10 Jul 2024 18:09:13 +0500 Subject: [PATCH] fix(apps): display app icon for tasks for boltdb --- db/Task.go | 2 +- db/bolt/task.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/db/Task.go b/db/Task.go index 4d0ddea10..cb4a2a291 100644 --- a/db/Task.go +++ b/db/Task.go @@ -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"` } diff --git a/db/bolt/task.go b/db/bolt/task.go index 9b0994609..2f538accc 100644 --- a/db/bolt/task.go +++ b/db/bolt/task.go @@ -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 {