Sage-Future / fatebook

The fastest way to make and track predictions
https://fatebook.io
MIT License
28 stars 8 forks source link

Wrap response with scrubber function #39

Closed WendiFan closed 4 weeks ago

WendiFan commented 1 month ago

Pull Request: Scrub personal data from questions response

Changes Made

Testing

Tested locally that responses on the public predictions page now return null for emails and some other fields.

Risks

There may be other responses that need to be scrubbed in a similar way. This is also intended as a quick fix for the immediate issue - but for reducing the risk of this happening again in future, I think we should consider having clearer models of what we need in the response from the DB.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
forecast-bot ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 16, 2024 8:41am