COVID-19-electronic-health-system / Coronalert

CoronaTracker notification service
6 stars 2 forks source link

Check if phone numbers already exist in lambda #32

Closed SomeMoosery closed 4 years ago

SomeMoosery commented 4 years ago

When subscribing or unsubscribing from notifications, we should check to make sure on subscribe, the phone number doesn't already exist in the database - and for unsubscribe, the phone number already exists in the database.

Another potential solution would be to do this on the frontend, storing some user data in Gaia like subscribed.json if the user is subscribed.

Open to suggestions.