twilio-labs / twilio-firebase-extensions

A collection of Firebase Extensions for Twilio functionality.
https://www.twilio.com/docs/labs/firebase-extensions
Apache License 2.0
16 stars 11 forks source link

Updating Creates Duplicate Contacts In SendGrid #41

Open christhornham opened 1 year ago

christhornham commented 1 year ago

The documents state the following:

"Updating a document will update the contact's data."

However, that's not happening.

Here's an example.

Let's say a user signs up for my app, and I create a "contacts" document. This triggers this extension to add a contact to the Marketing Campaigns contact list. This is functioning as expected.

Then, let's say the user updates their email address from email1@email.com to email2@email.com. This triggers the app to update the "contacts" document in firebase.

Based on how the documents read, I would expect email1@email.com to become email2@email.com in the Marketing Campaigns contact list at SendGrid. Instead, I now see two email addresses. Both email1@email.com AND email2@email.com are on the list.

Is this the expected behavior?

Thanks,

Chris

christhornham commented 1 year ago

I'm also having the same problem when deleting a contact. The docs state that:

"deleting the document will trigger its removal from the contact list in SendGrid."

Unfortunately, that's not happening either.

Are updates and deletes reflected in the Marketing Campaigns contact list immediately? Or do they happen after a period of time? If so, how long can I expect these changes to take?