8 lines
237 B
Ruby
8 lines
237 B
Ruby
class Conversations::ReopenSnoozedConversationsJob < ApplicationJob
|
|
queue_as :low
|
|
|
|
def perform
|
|
Conversation.where(status: :snoozed).where(snoozed_until: 3.days.ago..Time.current).all.find_each(batch_size: 100, &:open!)
|
|
end
|
|
end
|