Skip to content

Commit

Permalink
removed duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
ShashaankKrishnatray committed Nov 16, 2023
1 parent a9d364f commit 6978b63
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/rule-engine/src/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,24 +153,6 @@ export class Utils {
return messageContent;
}

/**
* Gets a concatenated string of messageParts with type 'text'.
*/
public static getMessagePartsEmailContent(messageParts: MessagePart[]): string {
let messageContent = '';

if (messageParts && messageParts.length) {
messageContent = messageParts
.filter((messagePart) => messagePart.email)
.map((messagePart) => {
return messagePart.email && messagePart.email.content;
})
.join(' ');
}

return messageContent;
}

public static processHanldebars(value: string, placeholders: PlaceholdersMap): string {
let processedString = '';
let isError = false;
Expand Down

0 comments on commit 6978b63

Please sign in to comment.