From 6978b639dcf89d9b178c0663f875af6e9a5dd30b Mon Sep 17 00:00:00 2001 From: ShashaankKrishnatray Date: Thu, 16 Nov 2023 15:42:55 +0530 Subject: [PATCH] removed duplicates --- packages/rule-engine/src/Utils.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/rule-engine/src/Utils.ts b/packages/rule-engine/src/Utils.ts index cb04275..ea71829 100644 --- a/packages/rule-engine/src/Utils.ts +++ b/packages/rule-engine/src/Utils.ts @@ -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;