-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/deactivate account fix #56
Conversation
…ts, make sure phone numbers would be reused
…wcirg/isacc-messaging-service into feature/deactivate-account-fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, but I'm concerned about on_twilio_message_received()
We don't include the active
check when looking up a patient there, so if there happens to be 2 patients with the same phone number, first_in_bundle()
could give you the in-active one.
I think you should modify the query there, and remove the pt.active
checks below there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one minor nit to fix.
Creating CLI commands to disable and enable active as per https://www.pivotaltracker.com/story/show/185455581