From c8a00ba1e40cd610bde9db035c5f773fb2898fdb Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Tue, 19 Sep 2023 23:34:51 +0200 Subject: [PATCH] fix(alerts): version instaed of build id --- services/tasks/alert.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/tasks/alert.go b/services/tasks/alert.go index c8fefd21..47bc3ddb 100644 --- a/services/tasks/alert.go +++ b/services/tasks/alert.go @@ -106,7 +106,10 @@ func (t *TaskRunner) sendTelegramAlert() { if t.Task.Version != nil { version = *t.Task.Version } else if t.Task.BuildTaskID != nil { - version = "build " + strconv.Itoa(*t.Task.BuildTaskID) + buildVer := t.Task.GetIncomingVersion(t.pool.store) + if buildVer != nil { + version = *buildVer + } } else { version = "" }