mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
[bug] fix admin showing count of deleted nouns
This commit is contained in:
parent
a7cfb11a05
commit
d93a5dbd36
@ -93,8 +93,8 @@ router.get('/admin/stats', async (req, res) => {
|
|||||||
pronouns: sortByValue(pronouns, true),
|
pronouns: sortByValue(pronouns, true),
|
||||||
flags: sortByValue(flags, true),
|
flags: sortByValue(flags, true),
|
||||||
nouns: {
|
nouns: {
|
||||||
approved: (await req.db.get(SQL`SELECT count(*) AS c FROM nouns WHERE locale=${locale} AND approved=1`)).c,
|
approved: (await req.db.get(SQL`SELECT count(*) AS c FROM nouns WHERE locale=${locale} AND approved=1 AND deleted=0`)).c,
|
||||||
awaiting: (await req.db.get(SQL`SELECT count(*) AS c FROM nouns WHERE locale=${locale} AND approved=0`)).c,
|
awaiting: (await req.db.get(SQL`SELECT count(*) AS c FROM nouns WHERE locale=${locale} AND approved=0 AND deleted=0`)).c,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user