fix(alerts): version instaed of build id

This commit is contained in:
Denis Gukov 2023-09-19 23:34:51 +02:00
parent 47f9c851e6
commit c8a00ba1e4

View File

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