d955d8e7dc
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
7 lines
215 B
Ruby
7 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
|