in ddm-notification-service/src/main/java/com/epam/digital/data/platform/notification/facade/UserNotificationFacade.java [130:141]
private List<Channel> getChannels(boolean ignoreChannelPreferences, Recipient recipient,
List<ChannelObject> channels, UserNotificationMessageDto notificationRecord) {
if (ignoreChannelPreferences) {
return channels.stream()
.map(channelObject -> Channel.valueOf(channelObject.getChannel().toUpperCase()))
.collect(Collectors.toList());
}
List<Channel> channelsToNotify = getDefaultChannels();
channelsToNotify.addAll(this.getChannelsFromSettings(recipient, notificationRecord));
return channelsToNotify;
}