diff --git a/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb b/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb index 1bc257ee2ae..c06f183dbbc 100644 --- a/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb +++ b/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb @@ -54,7 +54,7 @@ module Jobs NOT(u.moderator) AND u.created_at >= CURRENT_TIMESTAMP - '1 month'::INTERVAL GROUP BY u.id - HAVING COUNT(DISTINCT p.id) > 3 AND COUNT(DISTINCT p.topic_id) > 1 + HAVING COUNT(DISTINCT p.id) > 1 AND COUNT(DISTINCT p.topic_id) > 1 ORDER BY score DESC LIMIT :max_awarded SQL