FIX: Don't stop the badge grant after the first failure

This commit is contained in:
riking
2015-03-28 18:36:05 -07:00
parent 260b94e7e1
commit 6ce26ab4d8
2 changed files with 9 additions and 2 deletions

View File

@@ -120,7 +120,9 @@ class BadgeGranter
user_ids = list.map{|i| i["user_ids"]}.flatten.compact.uniq
next unless post_ids.present? || user_ids.present?
find_by_type(type).each{|badge| backfill(badge, post_ids: post_ids, user_ids: user_ids)}
find_by_type(type).each{ |badge|
backfill(badge, post_ids: post_ids, user_ids: user_ids)
}
end
end