-
Notifications
You must be signed in to change notification settings - Fork 53
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
cannot set user_id to null #88
Comments
Working on this one and it seems that somewhere where we serialize the JSON object to be sent to the Intercom servers, we are disregarding any changes to null. If I try to run the code in the OP there I get the following payload:
Running the same setting the email to null sends the following payload:
That's odd, because using curl for the same user but just changing the created_at, sends a lot less params:
Figuring out where these params are being created, and validating my suspicion that the way we are creating the JSON payload is ignoring null values. I'll investigate. |
Investigated this alongside @thewheat and this isn't a trivial fix as we will have to refactor how we create the JSON payload sent to the endpoints. Postponing a fix until we get other more impactful changes out. |
Description
null
does not send the data to the APIEvidence
If you run the above code you will see that it does not change the suer_id
The text was updated successfully, but these errors were encountered: