Skip to content

Commit

Permalink
Refacto
Browse files Browse the repository at this point in the history
  • Loading branch information
mouradski committed Oct 18, 2023
1 parent db36bd4 commit 19ac0e0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,7 @@ private void notifySale(SaleNotification saleNotification, Network network) thro
saleNotification.getSubscriptions().forEach(subscription -> {
var channel = discordApi.getTextChannelById(subscription.getChannelId());
try {
// channel.ifPresent(textChannel -> textChannel.sendMessage(embed).join());

System.out.println("Send Message XXXXX");
channel.ifPresent(textChannel -> textChannel.sendMessage(embed).join());
} catch (Exception e) {
log.error("Unable to send message triggered from transaction {} to channel {}", saleNotification.getTransactionHash(), channel.get().getIdAsString(), e);
}
Expand Down

0 comments on commit 19ac0e0

Please sign in to comment.