mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-26 06:23:35 -04:00
[notify] skip count == 0
This commit is contained in:
parent
52c859f7bc
commit
7854805bb8
@ -32,7 +32,7 @@ async function notify() {
|
|||||||
...(await db.all(`SELECT 'sources' as type, locale, count(*) as c FROM sources WHERE approved = 0 AND deleted=0 GROUP BY locale`)),
|
...(await db.all(`SELECT 'sources' as type, locale, count(*) as c FROM sources WHERE approved = 0 AND deleted=0 GROUP BY locale`)),
|
||||||
...(await db.all(`SELECT 'names' as type, locale, count(*) as c FROM names WHERE approved = 0 AND deleted=0 GROUP BY locale`)),
|
...(await db.all(`SELECT 'names' as type, locale, count(*) as c FROM names WHERE approved = 0 AND deleted=0 GROUP BY locale`)),
|
||||||
...(await db.all(`SELECT 'reports' as type, null as locale, count(*) as c FROM reports WHERE isHandled = 0`)),
|
...(await db.all(`SELECT 'reports' as type, null as locale, count(*) as c FROM reports WHERE isHandled = 0`)),
|
||||||
];
|
].filter(r => r.c > 0);
|
||||||
if (!awaitingModeration.length) {
|
if (!awaitingModeration.length) {
|
||||||
console.log('No entries awaiting moderation');
|
console.log('No entries awaiting moderation');
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user