Fix quoting in emails

This commit is contained in:
Girish Ramakrishnan
2020-03-07 19:12:39 -08:00
parent a3f3d86908
commit b32128bebf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ function roleChanged(mailTo, user) {
debug('Sending mail for roleChanged');
mailUserEvent(mailTo, user, `now has the role '${user.role}`);
mailUserEvent(mailTo, user, `now has the role '${user.role}'`);
}
function passwordReset(user) {
+1 -1
View File
@@ -141,7 +141,7 @@ function roleChanged(performedBy, eventId, user, callback) {
actionForAllAdmins([ performedBy, user.id ], function (admin, done) {
mailer.roleChanged(admin.email, user);
add(admin.id, eventId, `User '${user.displayName}'s role changed`, `User '${user.username || user.email || user.fallbackEmail}' now has the role '${user.role}'.`, done);
add(admin.id, eventId, `User '${user.displayName}'s role changed`, `User '${user.username || user.email || user.fallbackEmail}' now has the role ${user.role}.`, done);
}, callback);
}