Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit 84f350a

Browse files
authored
Update invite.class.js
1 parent 85743b7 commit 84f350a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

service/src/services/invite/invite.class.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ async subscription_invitation(data , res) {
151151
}
152152

153153
sendEmail(data , res){
154-
var SendEmailBody = SendEmailBodyInvite.replace(/WriteSenderNameHere/i, data.toEmail);
154+
var SendEmailBody = SendEmailBodyInvite.replace(/WriteSenderNameHere/i, data.fromEmail);
155155
SendEmailBody = SendEmailBody.replace(/DOMAIN/g, 'https://www.dashboard.' + domainKey);
156156
SendEmailBody = SendEmailBody.replace(/SYSTEMNAME/g, Object.keys(data.role)[0]);
157157
SendEmailBody = SendEmailBody.replace(/ROLE/g, Object.values(data.role)[0]);
@@ -171,7 +171,7 @@ async subscription_invitation(data , res) {
171171

172172
sendDeclineEmail(params, res) {
173173
var SendEmailBody = SendEmailBodyDecline.replace(/WriteSenderNameHere/i, params.query.fromEmail);
174-
SendEmailBody = SendEmailBody.replace(/domainKey/g, process.env.domainKey);
174+
SendEmailBody = SendEmailBody.replace(/DOMAIN/g, 'https://www.dashboard.' + domainKey);
175175
SendEmailBody = SendEmailBody.replace(/SYSTEMNAME/g, Object.keys(params.query.role)[0]);
176176
SendEmailBody = SendEmailBody.replace(/ROLE/g, Object.values(params.query.role)[0]);
177177
axios({

0 commit comments

Comments
 (0)