mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -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);
|
console.log(users.length);
|
||||||
|
|
||||||
|
const translator = await loadTranslator('en');
|
||||||
|
|
||||||
for (const user of users) {
|
for (const user of users) {
|
||||||
console.log('warn', user);
|
console.log('warn', user);
|
||||||
if (!execute) {
|
if (!execute) {
|
||||||
@ -58,7 +60,7 @@ async function warnInactive(db) {
|
|||||||
if (userRefreshed.bannedReason !== null) {
|
if (userRefreshed.bannedReason !== null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
await mailer(userRefreshed.email, 'inactivityWarning', await loadTranslator('_'), {
|
await mailer(userRefreshed.email, 'inactivityWarning', translator, {
|
||||||
username: userRefreshed.username,
|
username: userRefreshed.username,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user