File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ func NewNotificationRestHandlerImpl(dockerRegistryConfig pipeline.DockerRegistry
118
118
}
119
119
}
120
120
121
+ // SaveNotificationSettings will be deprecated in future
121
122
func (impl NotificationRestHandlerImpl ) SaveNotificationSettings (w http.ResponseWriter , r * http.Request ) {
122
123
userId , err := impl .userAuthService .GetLoggedInUser (r )
123
124
if userId == 0 || err != nil {
@@ -151,7 +152,7 @@ func (impl NotificationRestHandlerImpl) SaveNotificationSettings(w http.Response
151
152
152
153
if len (providers ) != 0 {
153
154
for _ , provider := range providers {
154
- if provider .Destination == "smtp" || provider .Destination == "ses" {
155
+ if provider .Destination == util . SMTP || provider .Destination == util . SES {
155
156
if provider .Recipient == "" {
156
157
userEmail , err := impl .userAuthService .GetEmailById (int32 (provider .ConfigId ))
157
158
if err != nil {
Original file line number Diff line number Diff line change @@ -226,7 +226,8 @@ type NotificationRequest struct {
226
226
UpdateType util.UpdateType `json:"updateType,omitempty"`
227
227
Providers []* bean.Provider `json:"providers"`
228
228
NotificationConfigRequest []* NotificationConfigRequest `json:"notificationConfigRequest" validate:"required"`
229
- SesConfigId int `json:"sesConfigId"`
229
+ // will be deprecated in future
230
+ SesConfigId int `json:"sesConfigId"`
230
231
}
231
232
232
233
type NotificationUpdateRequest struct {
You can’t perform that action at this time.
0 commit comments