Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
fix: only count contributors in specific language for general stats
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Jul 8, 2021
1 parent cb8ebcc commit 89d5590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/sentences.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 89d5590

Please sign in to comment.