Munchable is a barcode scanner for people with gut conditions, and the thing that makes its privacy notice short is that the health data never arrives: the conditions you pick, your sensitivities and your scan history are on the phone, and the verdict is worked out there too. The policy is at munchable.app/privacy , and the sentence it leads with is that we hold an email address, a subscription record and any labels you contributed.
Two route handlers have to make that sentence checkable: one that hands you everything we hold, and one that erases it. They live in sibling folders, they were written months apart, and they disagree about the schema.
The export, in full
GET /api/export-account is five queries in parallel and one JSON response.
const [ ent , consent , rewards , contributions , feedback ] = await Promise . all ( [ db . select ( ) . from ( entitlements ) . where ( eq ( entitlements . userId , uid ) ) . limit ( 1 ) , db . select ( ) . from ( userConsent ) . where ( eq ( userConsent .…