stacker.news/api
SatsAllDay e3571af1e1
Make Polls Anonymous (#1197)
* make polls anonymous

Introduce a `PollBlindVote` DB table that tracks when a user votes in a poll,
but does not track which choice they made.

Alter the `PollVote` DB table to remove the `userId` column, meaning `PollVote`
now tracks poll votes anonymously - it captures votes per poll option,
but does not track which user submitted the vote.

Update the `poll_vote` DB function to work with both tables now.

Update the `item.poll` resolver to calculate `meVoted` based on the `PollBlindVote`
table instead of `PollVote`.

* remove `meVoted` on `PollOption`s

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-06-03 13:56:43 -05:00
..
lnd Add docs for local LND setup 2023-05-19 18:28:46 -05:00
models refine module instantiation 2022-04-27 17:06:42 -05:00
resolvers Make Polls Anonymous (#1197) 2024-06-03 13:56:43 -05:00
s3 make dev s3 endpoints clearer 2024-03-20 13:23:59 -05:00
search semantic search 2024-01-15 17:22:57 -06:00
slack Add setting to send diagnostics back to SN (#463) 2023-09-18 18:00:16 -05:00
typeDefs Make Polls Anonymous (#1197) 2024-06-03 13:56:43 -05:00
package.json Convert worker to ESM (#500) 2023-09-23 20:19:35 -05:00
ssrApollo.js add NEXT_PUBLIC_URL 2024-04-08 17:54:39 -05:00