Skip to content

Commit

Permalink
chore: update email footer
Browse files Browse the repository at this point in the history
  • Loading branch information
guqing committed Sep 21, 2023
1 parent 43985da commit f4997fa
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ public Mono<Void> notify(NotificationContext context) {
}
var htmlMono = appendHtmlBodyFooter(payload.getAttributes())
.doOnNext(footer -> {
if (StringUtils.isNotBlank(payload.getRawBody())) {
payload.setHtmlBody(payload.getHtmlBody() + footer);
if (StringUtils.isNotBlank(payload.getHtmlBody())) {
payload.setHtmlBody(payload.getHtmlBody() + "\n" + footer);
}
});
var rawMono = appendRawBodyFooter(payload.getAttributes())
.doOnNext(footer -> {
if (StringUtils.isNotBlank(payload.getHtmlBody())) {
payload.setRawBody(payload.getRawBody() + footer);
if (StringUtils.isNotBlank(payload.getRawBody())) {
payload.setRawBody(payload.getRawBody() + "\n" + footer);
}
});
return Mono.when(htmlMono, rawMono)
Expand Down

0 comments on commit f4997fa

Please sign in to comment.