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