Skip to content

Commit

Permalink
avoid direct access to proto value
Browse files Browse the repository at this point in the history
emailNotification.template -> emailNotification.GetTemplate

Signed-off-by: peterxcli <peterxcli@gmail.com>
  • Loading branch information
peterxcli committed Nov 30, 2024
1 parent f48160e commit fde5626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flyteadmin/pkg/async/notifications/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ func ToEmailMessageFromWorkflowExecutionEvent(
execution *admin.Execution) *admin.EmailMessage {

var emailBody string
if emailNotification.Template != "" {
emailBody = emailNotification.Template
if emailNotification.GetTemplate() != "" {
emailBody = emailNotification.GetTemplate()
} else {
emailBody = config.NotificationsEmailerConfig.Body
}
Expand Down

0 comments on commit fde5626

Please sign in to comment.