Skip to content

Commit

Permalink
Added code for fixing the email echo notification issue. jira no. 17846.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanopsmx authored and opsmxyuga22 committed Mar 20, 2023
1 parent 282d6ed commit 95dae43
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ public class NotificationController {
*/
@RequestMapping(method = RequestMethod.POST)
public EchoResponse create(@RequestBody Notification notification) {

notificationServices.stream()
.forEach(
it -> {
if (!("SLACK".equals(notification.getNotificationType()))) {
notification.setUseInteractiveBot(false);
notification.setInteractiveActions(null);
}
});
val notificationService =
notificationServices.stream()
.filter(
Expand Down

0 comments on commit 95dae43

Please # to comment.