mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 03:57:47 -04:00
(bug) fix cleanupAccounts emails saying just "undefined undefined"
This commit is contained in:
parent
8f6c1cb04f
commit
4f9750c823
@ -38,6 +38,8 @@ async function warnInactive(db) {
|
||||
|
||||
console.log(users.length);
|
||||
|
||||
const translator = await loadTranslator('en');
|
||||
|
||||
for (const user of users) {
|
||||
console.log('warn', user);
|
||||
if (!execute) {
|
||||
@ -58,7 +60,7 @@ async function warnInactive(db) {
|
||||
if (userRefreshed.bannedReason !== null) {
|
||||
continue;
|
||||
}
|
||||
await mailer(userRefreshed.email, 'inactivityWarning', await loadTranslator('_'), {
|
||||
await mailer(userRefreshed.email, 'inactivityWarning', translator, {
|
||||
username: userRefreshed.username,
|
||||
});
|
||||
} catch (error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user