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 error handling on duplicated APNS devices #738

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bielfrontera
Copy link

If we have a duplicated registration ID on the APNSDevice model and we get an unregistered error after sending a message, it raises a MultipleObjectsReturned exception (get() returned more than one APNSDevice -- it returned ...!).

In order to fix this, we can update all the records with that registration ID instead of using objects.get.

@bielfrontera bielfrontera force-pushed the fix-on-error-duplicated-apnsdevice branch from c5918d0 to 305051b Compare September 6, 2024 11:52
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