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"`