mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-29 07:53:27 -04:00
[cards] notify shared email instead
This commit is contained in:
parent
5e128e0de0
commit
db29a6afcd
@ -115,7 +115,7 @@ module.exports.calculateStats = async (db, allLocales) => {
|
|||||||
const cardsQueue = (await db.get(`SELECT count(*) as c FROM profiles WHERE card = '' OR cardDark = ''`)).c;
|
const cardsQueue = (await db.get(`SELECT count(*) as c FROM profiles WHERE card = '' OR cardDark = ''`)).c;
|
||||||
|
|
||||||
if (cardsQueue > 64) {
|
if (cardsQueue > 64) {
|
||||||
mailer('andrea@avris.it', 'cardsWarning', {count: cardsQueue});
|
mailer('contact@pronouns.page', 'cardsWarning', {count: cardsQueue});
|
||||||
}
|
}
|
||||||
|
|
||||||
return { calculatedAt: parseInt(new Date() / 1000), users, locales, cardsQueue };
|
return { calculatedAt: parseInt(new Date() / 1000), users, locales, cardsQueue };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user