stacker.news/api/resolvers
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
..
admin.js snl live banner 2023-06-20 09:57:06 -05:00
apiKey.js Limit scope of API Keys (#989) 2024-04-03 15:11:06 -05:00
blockHeight.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
chainFee.js [1124] - Use Mempool For Fee Rate (#1171) 2024-05-15 10:26:49 -05:00
growth.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
image.js Allow SN users to edit special items forever (#1204) 2024-06-03 11:26:19 -05:00
index.js Add chain fees to price carousel (#658) 2023-12-20 16:06:22 -06:00
invite.js Limit scope of API Keys (#989) 2024-04-03 15:11:06 -05:00
item.js Make Polls Anonymous (#1197) 2024-06-03 13:56:43 -05:00
lnurl.js Limit scope of API Keys (#989) 2024-04-03 15:11:06 -05:00
message.js Revert "Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"" 2023-07-23 10:08:43 -05:00
notifications.js Item mention notifications (#1208) 2024-06-03 12:12:42 -05:00
ofac.js mute territories 2023-12-30 17:16:09 -06:00
price.js require sub selection, allow editting 2023-05-10 19:30:51 -05:00
referrals.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
rewards.js Allow SN users to edit special items forever (#1204) 2024-06-03 11:26:19 -05:00
search.js Search bookmarks (#1075) 2024-04-19 13:24:48 -05:00
serial.js count pending withdrawals toward balance 2024-04-27 18:37:57 -05:00
sub.js Merge serializeInvoiceable with serialize without bug (#1051) 2024-04-09 19:49:20 -05:00
upload.js Allow SN users to edit special items forever (#1204) 2024-06-03 11:26:19 -05:00
user.js Item mention notifications (#1208) 2024-06-03 12:12:42 -05:00
wallet.js Allow SN users to edit special items forever (#1204) 2024-06-03 11:26:19 -05:00