Skip to content

Commit

Permalink
Do not download related messages to drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Nov 13, 2024
1 parent 8a5e659 commit 568cf9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/fs/sync_box_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 568cf9d

Please sign in to comment.