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

fix: Fix du nom et prénom dans la synchronisation des contacts avec Brevo #1311

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

madjid-asa
Copy link
Contributor

Quoi ?

Fix du nom et prénom dans la synchronisation des contacts avec Brevo.

+Ajout d'une méthode pour mettre à jour un contact Brevo pour rattraper le stock

@madjid-asa madjid-asa self-assigned this Jun 28, 2024
@github-actions github-actions bot requested a review from raphodn June 28, 2024 07:01
Copy link
Contributor

@SebastienReuiller SebastienReuiller left a comment

Choose a reason for hiding this comment

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

LG ! 👍
Tu prévois de faire tourner l'update_contact sur tous les contacts ?

@madjid-asa
Copy link
Contributor Author

madjid-asa commented Jun 28, 2024

LG ! 👍 Tu prévois de faire tourner l'update_contact sur tous les contacts ?

yes c'est déjà fait

def get_user_identifiers(user):
         return {            "NOM": user.last_name,"PRENOM": user.first_name}
all_users = User.objects.filter(brevo_contact_id__isnull=False)
for u in all_users:
        update_contact(u.email, get_user_identifiers(u))

@madjid-asa madjid-asa merged commit e7c1ef5 into master Jun 28, 2024
7 checks passed
@madjid-asa madjid-asa deleted the madjid-asa/update-sync-brevo branch June 28, 2024 08:25
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