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

removePushDeviceToken fix #571

Merged
merged 1 commit into from Sep 14, 2016
Merged

removePushDeviceToken fix #571

merged 1 commit into from Sep 14, 2016

Conversation

joeymalysz
Copy link
Contributor

Original removePushDeviceToken function would make device token value a list, which would result in the $remove operation not working:

$remove":{"$ios_devices":["1719128325f7036b765fcd5087bbac542b6ae0becdd1003674faaad6f1918721"]}

Through making it a string we can ensure that the $remove operation will work:

$remove":{"$ios_devices":"1719128325f7036b765fcd5087bbac542b6ae0becdd1003674faaad6f1918721"}

Original removePushDeviceToken function would make device token value a list, which would result in the $remove operation not working:

$remove":{"$ios_devices":["1719128325f7036b765fcd5087bbac542b6ae0becdd1003674faaad6f1918721"]}

Through making it a string we can ensure that the $remove operation will work:

$remove":{"$ios_devices":"1719128325f7036b765fcd5087bbac542b6ae0becdd1003674faaad6f1918721"}
@yarneo
Copy link
Contributor

yarneo commented Sep 14, 2016

Awesome! Thanks for opening this PR! Looks good, i'm merging it to master.

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.

None yet

2 participants