5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 23:56:22 +00:00

feat: optimizar acceso a información y ordenar por hostname

This commit is contained in:
f 2024-02-28 16:23:18 -03:00
parent 43d190ba74
commit 259d1c1e90
No known key found for this signature in database

View file

@ -2,6 +2,10 @@
# Gestiona los filtros de InstanceModeration
class InstanceModerationProcessor < Rubanok::Processor
prepare do
raw.includes(:instance).order('activity_pub_instances.hostname')
end
map :state, activate_always: true do |state: 'paused'|
raw.where(aasm_state: state)
end