fix users subject repeat bug

dev_forum
p31729568 5 years ago
parent f55e1568ed
commit 748f4dc577

@ -14,7 +14,7 @@ class Users::SubjectService
subjects = category_scope_subjects
subjects = user_policy_filter(subjects)
custom_sort(subjects, :updated_at, params[:sort_direction])
custom_sort(subjects.distinct, :updated_at, params[:sort_direction])
end
private

Loading…
Cancel
Save