Skip to content

Commit

Permalink
factors nil cases into approved points selection
Browse files Browse the repository at this point in the history
  • Loading branch information
madoleary committed Jun 5, 2023
1 parent 17f295c commit 7fd1d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/service.rake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace :service do
services = Service.all
puts "Getting unreviewed services"
services.where('is_comprehensively_reviewed = false').each do |service|
approved_points = service.points.where("status = 'approved'");
approved_points = service.approved_points
if approved_points.length >= 20
puts "Found #{service.name} - #{service.id}"
service.is_comprehensively_reviewed = true
Expand Down

0 comments on commit 7fd1d17

Please sign in to comment.