Skip to content

Commit

Permalink
Merge pull request #16 from ianmcorvidae/analysis-details-link
Browse files Browse the repository at this point in the history
Wire up analysis ID to get sent to notifications/email service
  • Loading branch information
ianmcorvidae authored Oct 2, 2024
2 parents 172c319 + 659d9c2 commit 35558a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 35558a7

Please sign in to comment.