From fde5626c7fd7aa59c90a3cd31c3f30ef6211daec Mon Sep 17 00:00:00 2001 From: peterxcli Date: Sun, 1 Dec 2024 02:10:59 +0800 Subject: [PATCH] avoid direct access to proto value emailNotification.template -> emailNotification.GetTemplate Signed-off-by: peterxcli --- flyteadmin/pkg/async/notifications/email.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flyteadmin/pkg/async/notifications/email.go b/flyteadmin/pkg/async/notifications/email.go index b60c898934..a6b3c8ea82 100644 --- a/flyteadmin/pkg/async/notifications/email.go +++ b/flyteadmin/pkg/async/notifications/email.go @@ -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 }