mirror of
https://github.com/discourse/discourse.git
synced 2025-04-18 01:19:04 +08:00
DEV: Fix warning when exporting Staff Actions (#22168)
This commit is contained in:
parent
e2e17bfb0f
commit
0626b7c413
@ -171,12 +171,14 @@ module Jobs
|
|||||||
|
|
||||||
staff_action_data =
|
staff_action_data =
|
||||||
if @current_user.admin?
|
if @current_user.admin?
|
||||||
UserHistory.only_staff_actions.order("id DESC")
|
UserHistory.only_staff_actions
|
||||||
else
|
else
|
||||||
UserHistory.where(admin_only: false).only_staff_actions.order("id DESC")
|
UserHistory.where(admin_only: false).only_staff_actions
|
||||||
end
|
end
|
||||||
|
|
||||||
staff_action_data.find_each { |staff_action| yield get_staff_action_fields(staff_action) }
|
staff_action_data.find_each(order: :desc) do |staff_action|
|
||||||
|
yield get_staff_action_fields(staff_action)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def screened_email_export
|
def screened_email_export
|
||||||
|
Loading…
x
Reference in New Issue
Block a user