diff --git a/app/jobs/fs/sync_box_job.rb b/app/jobs/fs/sync_box_job.rb index 1bfa355f..4ff4065e 100644 --- a/app/jobs/fs/sync_box_job.rb +++ b/app/jobs/fs/sync_box_job.rb @@ -4,7 +4,7 @@ def perform(box, from: Date.today - 1.week, to: Date.tomorrow) raise unless box.is_a?(Fs::Box) return unless box.syncable? - box.messages.outbox.find_each do |outbox_message| + box.messages.outbox.where(type: [nil, 'Message']).find_each do |outbox_message| DownloadSentMessageRelatedMessagesJob.perform_later(outbox_message, from: from, to: to) end end