mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
fix(emails): correct unsub link handling
This commit is contained in:
parent
5e781017ab
commit
b579f31e9e
1 changed files with 1 additions and 3 deletions
|
|
@ -17,7 +17,6 @@ function processUsers (lastId) {
|
|||
// specify a query to limit the affected users (empty for all users):
|
||||
let query = {
|
||||
migration: {$ne: MIGRATION_NAME},
|
||||
'preferences.emailNotifications.majorUpdates': {$ne: false},
|
||||
'flags.verifiedUsername': {$ne: true},
|
||||
'auth.timestamps.loggedin': {$gt: new Date('2018-10-25')},
|
||||
};
|
||||
|
|
@ -73,8 +72,7 @@ function updateUser (user) {
|
|||
sendTxn(
|
||||
user,
|
||||
'username-change-follow-up',
|
||||
[{name: 'UNSUB_EMAIL_TYPE_URL', content: '/user/settings/notifications?unsubFrom=majorUpdates'},
|
||||
{name: 'LOGIN_NAME', content: user.auth.local.username},
|
||||
[{name: 'LOGIN_NAME', content: user.auth.local.username},
|
||||
{name: 'BASE_URL', content: BASE_URL}]
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue