diff --git a/server/lib/sentences.js b/server/lib/sentences.js index 97c8c836..49feca90 100644 --- a/server/lib/sentences.js +++ b/server/lib/sentences.js @@ -172,7 +172,7 @@ async function getAllStatsForLocale(locale) { getValidatedSentencesCountForLocale(locale), getRejectedSentencesCountForLocale(locale), Sentence.count({ where: { localeId: locale }}), - Sentence.count({ distinct: true, col: 'userId'}), + Sentence.count({ distinct: true, col: 'userId', where: { localeId: locale }}), ]); return {