Skip to content

Commit

Permalink
fix: add fix for sendEmail method
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan-bloomscorp committed May 3, 2024
1 parent 0051c2e commit 533f746
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/email/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ export function sendEmail(
payload.append('userId', templateOwnerId);
payload.append('templateId', templateId);

payload.append(`senderInfo['deviceType']`, resolveDevice());
payload.append(`senderInfo['osName']`, resolveOS());
payload.append(`senderInfo['browserName']`, resolveBrowser());
payload.append(`senderInfo['ipAddress']`, resolveIPAddress());
payload.append(`senderInfo['countryCode']`, resolveCountry());
payload.append(`senderInfo['region']`, resolveRegion());
payload.append(`senderInfo['city']`, resolveCity());
payload.append(`senderInfo['url']`, resolveActiveUrl());
payload.append(`senderInfo[deviceType]`, resolveDevice());
payload.append(`senderInfo[osName]`, resolveOS());
payload.append(`senderInfo[browserName]`, resolveBrowser());
payload.append(`senderInfo[ipAddress]`, resolveIPAddress());
payload.append(`senderInfo[countryCode]`, resolveCountry());
payload.append(`senderInfo[region]`, resolveRegion());
payload.append(`senderInfo[city]`, resolveCity());
payload.append(`senderInfo[url]`, resolveActiveUrl());

emailMetaData.forEach((item: FormDataEntryValue, key: string) => {
payload.append(`metadata[${key}]`, item);
Expand Down

0 comments on commit 533f746

Please sign in to comment.