From 659d9c28655d3d90d2d7597b604e2fef86e24dda Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Tue, 1 Oct 2024 12:03:51 -0700 Subject: [PATCH] Wire up analysis ID to get sent to notifications/email service --- main.go | 1 + notifications.go | 1 + 2 files changed, 2 insertions(+) diff --git a/main.go b/main.go index 33b8a48..c5579ff 100644 --- a/main.go +++ b/main.go @@ -81,6 +81,7 @@ func sendNotif(ctx context.Context, j *Job, status, subject, msg string, email b } p := NewPayload() + p.AnalysisID = j.ID p.AnalysisName = j.Name p.AnalysisDescription = j.Description p.AnalysisStatus = status diff --git a/notifications.go b/notifications.go index 9b735f3..5aa45cf 100644 --- a/notifications.go +++ b/notifications.go @@ -62,6 +62,7 @@ type Notification struct { // Payload is the information needed for Analysis notifications type Payload struct { + AnalysisID string `json:"analysisid"` AnalysisName string `json:"analysisname"` AnalysisDescription string `json:"analysisdescription"` AnalysisStatus string `json:"analysisstatus"`