Skip to content

Conversation

bielfrontera
Copy link
Contributor

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
@jamaalscarlett
Copy link
Member

Thanks @bielfrontera. It looks like there is a merge conflict, once that is fixed we can get this merged.

@bielfrontera bielfrontera force-pushed the fix-on-error-duplicated-apnsdevice branch from 305051b to 8a85833 Compare October 7, 2024 15:24
@bielfrontera
Copy link
Contributor Author

Thanks @bielfrontera. It looks like there is a merge conflict, once that is fixed we can get this merged.

Great! I've rebased and fixed the merge conflict.

@jamaalscarlett jamaalscarlett merged commit d8b445e into jazzband:master Oct 14, 2024
6 checks passed
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.

5 participants