Skip to content

Conversation

@northeastprince
Copy link
Collaborator

@northeastprince northeastprince commented Sep 18, 2023

@sampoder sampoder force-pushed the dont-send-redundant-digests branch from 0e86e08 to fad24d3 Compare September 28, 2023 21:42
Comment on lines +10 to +19
@new_listings_by_subscription = @digest.listings
.includes(:subscription, hackathon: {logo_attachment: :blob})
.select { |listing| listing.previously_listed_for_recipient? }
.group_by(&:subscription)

@previous_listings_by_subscription = @digest.listings
.includes(:subscription, hackathon: {logo_attachment: :blob})
.reject { |listing| listing.previously_listed_for_recipient? }
.group_by(&:subscription)

Copy link
Member

Choose a reason for hiding this comment

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

Check out partition :)

@northeastprince
Copy link
Collaborator Author

Don't think this is needed with #352

@northeastprince northeastprince deleted the dont-send-redundant-digests branch September 21, 2024 19:05
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.

4 participants