Skip to content

Commit

Permalink
also touch user observers for enrolling from user_list
Browse files Browse the repository at this point in the history
refs CNVS-38364

test plan
 - specs should pass

Change-Id: Ie8a53b8ae025b65ffda3f91ff4383d9e8b369213
Reviewed-on: https://gerrit.instructure.com/120426
Tested-by: Jenkins
Product-Review: Rob Orton <[email protected]>
QA-Review: Rob Orton <[email protected]>
Reviewed-by: Cody Cutrer <[email protected]>
  • Loading branch information
roor0 committed Jul 25, 2017
1 parent f03eaf3 commit 37db902
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/enrollments_from_user_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def process(list)
end
@user_ids_to_touch.uniq.each_slice(100) do |user_ids|
User.where(id: user_ids).touch_all
User.where(id: UserObserver.where(user_id: user_ids).select(:observer_id)).touch_all
end

@enrollments
Expand Down

0 comments on commit 37db902

Please sign in to comment.