Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GO-128 Do not download related messages to drafts #486

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

luciajanikova
Copy link
Member

Pri syncovani boxu chceme stahovat iba suvisiace spravy k plnohodnotnym outboxovym spravam, aby sme vylucili drafty.

@@ -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|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spravme si tu nejaky scope except_drafts lebo toto sa neda uplne pochopit.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alebo mozno not.drafts by sa mohlo tiez dat spravit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants