-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: status aggregate values in admin grade page #229
Conversation
Update the `getStatusCount` function in `src/server/router/application.ts` to use the `DH11Application` model's `status` field instead of the `User` model's `status` field. * Modify the `getStatusCount` function to use `ctx.prisma.dH11Application.groupBy` instead of `ctx.prisma.user.groupBy` * Remove the unnecessary `where` clause in the `getStatusCount` function --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/deltahacks/portal?shareId=XXXX-XXXX-XXXX-XXXX).
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for dh-portal-beta ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks correct and it works when i ran locally so LG.
Update the
getStatusCount
function insrc/server/router/application.ts
to use theDH11Application
model'sstatus
field instead of theUser
model'sstatus
field.getStatusCount
function to usectx.prisma.dH11Application.groupBy
instead ofctx.prisma.user.groupBy
where
clause in thegetStatusCount
functionFor more details, open the Copilot Workspace session.