Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/public/email-templates/action-email-activation.njk
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ table[class=body] .article {
</tr>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;" valign="top">
<p style="font-size: 18px; font-weight: normal; margin: 0; margin-bottom: 15px;">{{ textContent }}</p>
<p style="font-size: 18px; font-weight: normal; margin: 0; margin-bottom: 15px;">{{ textContent | replace(' Primary Keys: ' ~ primaryKeysValuesStr, '') | trim }}</p>
<p style="font-size: 18px; font-weight: normal; margin: 0; margin-bottom: 15px;">Primary Keys: {{ primaryKeysValuesStr }}</p>
</td>
</tr>
Expand Down
9 changes: 3 additions & 6 deletions backend/src/entities/email/email/email.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,7 @@ export class EmailService {
: triggerOperation === TableActionEventEnum.DELETE_ROW
? 'deleted a row'
: 'performed an action';
const textContent = EMAIL_TEXT.ACTION_EMAIL.EMAIL_TEXT(
userInfo,
triggerOperation,
tableName,
primaryKeyValuesArray,
);
const textContent = EMAIL_TEXT.ACTION_EMAIL.EMAIL_TEXT(userInfo, action, tableName, primaryKeyValuesArray);

const primaryKeysValuesStr = JSON.stringify(primaryKeyValuesArray);
const letterContent: IMessage = {
Expand All @@ -76,6 +71,8 @@ export class EmailService {
action,
primaryKeysValuesStr,
currentYear,
textContent,
primaryKeyValuesArray,
}),
};
return await this.sendEmailToUser(letterContent);
Expand Down
Loading