Skip to content

[Backend] User Profile - Get User's Predictions#470

Merged
Olowodarey merged 7 commits intoArena1X:mainfrom
chiscookeke11:issue-412
Mar 29, 2026
Merged

[Backend] User Profile - Get User's Predictions#470
Olowodarey merged 7 commits intoArena1X:mainfrom
chiscookeke11:issue-412

Conversation

@chiscookeke11
Copy link
Copy Markdown
Contributor

closes #412

Added a new DTO and response types in backend/src/users/dto/list-user-predictions.dto.ts to support page, limit, and outcome filters and the public response shape.
Implemented GET /users/:address/predictions in UsersController and wired it to UsersService.findPublicPredictionsByAddress with request validation and Swagger docs.
Implemented UsersService.findPublicPredictionsByAddress to resolve the user by address, query the Prediction repository joined with market, restrict to market.is_resolved = true, apply pagination, compute a public outcome for each prediction, and apply outcome filtering in the returned data.

Screenshot 2026-03-29 065220

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview, Comment Mar 29, 2026 6:13am

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 29, 2026

@chiscookeke11 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

@Olowodarey Olowodarey merged commit 06e5390 into Arena1X:main Mar 29, 2026
6 checks 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.

[Backend] User Profile - Get User's Predictions

2 participants