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

refactor: clearer data update order for Mailchimp #136

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

Conversation

wpf500
Copy link
Member

@wpf500 wpf500 commented Feb 3, 2025

This PR makes the behaviour of NewsletterService.upsertContact consistent so its source of truth for a contact is always the object itself. Before there was an ambiguity between whether the contact should be passed to this method before or after having being update. Now it should always happen after the contact update, making the interaction between ContactService and NewsletterService much clearer.

It also removes the shouldUpdate guard, which in practice didn't prevent many (if any) updates, and also reduces the separation of concerns between the ContactService and NewsletterService.

@wpf500 wpf500 force-pushed the feat/1262-mc-fix-update-order branch from 116e76a to 87cc2fd Compare February 3, 2025 15:20
@wpf500 wpf500 requested a review from JumpLink February 3, 2025 16:26
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.

1 participant