From bc96dc7de50844fbda19a89961c36cc65ac0b97b Mon Sep 17 00:00:00 2001 From: towfiqi Date: Fri, 8 Nov 2024 09:56:54 +0600 Subject: [PATCH] fix: Resolves notification email's incorrect image size in some email clients. closes #201 --- utils/generateEmail.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/generateEmail.ts b/utils/generateEmail.ts index 8b776d0..9dff830 100644 --- a/utils/generateEmail.ts +++ b/utils/generateEmail.ts @@ -88,7 +88,7 @@ const generateEmail = async (domainName:string, keywords:KeywordType[]) : Promis const positionChange = getPositionChange(keyword.history, keyword.position); const deviceIconImg = keyword.device === 'desktop' ? desktopIcon : mobileIcon; const countryFlag = `${keyword.country}`; - const deviceIcon = `${keyword.device}`; + const deviceIcon = `${keyword.device}`; if (positionChange > 0) { positionChangeIcon = ''; improved += 1; } if (positionChange < 0) { positionChangeIcon = ''; declined += 1; } @@ -104,7 +104,7 @@ const generateEmail = async (domainName:string, keywords:KeywordType[]) : Promis const stat = `${improved > 0 ? `${improved} Improved` : ''} ${improved > 0 && declined > 0 ? ', ' : ''} ${declined > 0 ? `${declined} Declined` : ''}`; const updatedEmail = emailTemplate - .replace('{{logo}}', `SerpBear`) + .replace('{{logo}}', `SerpBear`) .replace('{{currentDate}}', currentDate) .replace('{{domainName}}', domainName) .replace('{{keywordsCount}}', keywordsCount.toString()) @@ -172,7 +172,7 @@ const generateGoogeleConsoleStats = async (domainName:string): Promise = let htmlWithSCStats = `