Skip to content

Add challenge voting endpoint#226

Merged
MaryammAli merged 1 commit into
BlockDash-Studios:mainfrom
newmattock:issue-175-challenge-voting
Jun 27, 2026
Merged

Add challenge voting endpoint#226
MaryammAli merged 1 commit into
BlockDash-Studios:mainfrom
newmattock:issue-175-challenge-voting

Conversation

@newmattock

Copy link
Copy Markdown
Contributor

Summary

  • Add a NestJS challenges module with POST /challenges/:challengeId/votes and GET /challenges/:challengeId/votes.
  • Store one up/down vote per user per challenge and update repeated votes without double-counting.
  • Register the module in the backend app and repair existing module/type issues that blocked full TypeScript validation.

Verification

  • node node_modules/jest/bin/jest.js challenges --runInBand
  • node node_modules/typescript/bin/tsc --noEmit --pretty false
  • npm test -- challenges --runInBand is blocked locally by the repo's tracked non-executable node_modules/.bin/jest shim, so the direct Node invocation above was used.

Closes #175

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@newmattock Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@MaryammAli MaryammAli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MaryammAli MaryammAli merged commit 565ac20 into BlockDash-Studios:main Jun 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add challenge voting endpoint

2 participants