Skip to content

Commit

Permalink
Sort emails case-insensitively
Browse files Browse the repository at this point in the history
  • Loading branch information
Insprill committed Apr 19, 2024
1 parent feb5b4b commit 9ce7641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async fn run(config: &Config, creds: &Credentials) -> Result<(), Box<dyn Error>>
!c.preferences.email_unsubscribed,
)
})
.unique_by(|c| c.email_address.as_ref().unwrap().to_string()) // Unwrap validated in filter
.unique_by(|c| c.email_address.as_ref().unwrap().to_lowercase()) // Unwrap validated in filter
.map(|customer| ListmonkSubscriber {
email: customer.email_address.unwrap(),
name: format!(
Expand Down

0 comments on commit 9ce7641

Please sign in to comment.