Skip to content

Commit 475e929

Browse files
committed
Use fast unlocks impl
1 parent ac40327 commit 475e929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/unlock.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def self.refresh_unlocks(course, user)
2424
Unlock.transaction do
2525
unlocks = course.unlocks.where(user_id: user.id)
2626
by_exercise_name = Hash[unlocks.map { |u| [u.exercise_name, u] }]
27-
refresh_unlocks_impl(course, user, by_exercise_name)
27+
fast_refresh_unlocks_impl(course, user, by_exercise_name)
2828
UncomputedUnlock.where(course_id: course.id, user_id: user.id).where("created_at < ?", time).delete_all
2929
end
3030
end

0 commit comments

Comments
 (0)