mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix(emails): correct unsub link handling
This commit is contained in:
@@ -17,7 +17,6 @@ function processUsers (lastId) {
|
|||||||
// specify a query to limit the affected users (empty for all users):
|
// specify a query to limit the affected users (empty for all users):
|
||||||
let query = {
|
let query = {
|
||||||
migration: {$ne: MIGRATION_NAME},
|
migration: {$ne: MIGRATION_NAME},
|
||||||
'preferences.emailNotifications.majorUpdates': {$ne: false},
|
|
||||||
'flags.verifiedUsername': {$ne: true},
|
'flags.verifiedUsername': {$ne: true},
|
||||||
'auth.timestamps.loggedin': {$gt: new Date('2018-10-25')},
|
'auth.timestamps.loggedin': {$gt: new Date('2018-10-25')},
|
||||||
};
|
};
|
||||||
@@ -73,8 +72,7 @@ function updateUser (user) {
|
|||||||
sendTxn(
|
sendTxn(
|
||||||
user,
|
user,
|
||||||
'username-change-follow-up',
|
'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}]
|
{name: 'BASE_URL', content: BASE_URL}]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user