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

Handle device not found #150

Merged
merged 2 commits into from
Nov 7, 2019
Merged

Handle device not found #150

merged 2 commits into from
Nov 7, 2019

Conversation

viktorsmari
Copy link
Collaborator

@viktorsmari viktorsmari commented Oct 23, 2019

TODO:

  • Add test for when a device is not found
  • What to do if it is not found? Simply do nothing?
  • Refactor: create a method to reuse the device = Device.find_by(device_token: self.device_token(topic)) in more places?

Sentry error screenshot:
2019-10-23_15-17-14

@viktorsmari viktorsmari merged commit 64fe335 into master Nov 7, 2019
@viktorsmari viktorsmari deleted the handle-device-not-found branch November 7, 2019 11:42
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.

1 participant