Skip to content

Conversation

@simon0820s
Copy link
Contributor

Fix bug: 3387

Apply status filters directly at DB level (ENDED / ONGOING / UPCOMING) using Prisma where conditions.
Integrate searchFilters into the main query by pushing { OR: searchFilters } into the shared conditions array.
Remove redundant in-memory status filtering over hackathons after fetching from DB.
Drop the extra findMany + getHackathonLite roundtrip previously used only to recompute totalHackathons by status.
Simplify the response by deriving total from hackathonsLite.length, aligned with the already filtered in-memory collection.

@simon0820s simon0820s requested a review from a team as a code owner November 28, 2025 22:03
@vercel
Copy link

vercel bot commented Nov 28, 2025

Someone is attempting to deploy a commit to the Ava Labs Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Nov 28, 2025

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

Project Deployment Preview Comments Updated (UTC)
builder-hub Ready Ready Preview Comment Dec 2, 2025 5:53am

@simon0820s
Copy link
Contributor Author

Fixed !!

@Andyvargtz
Copy link
Collaborator

@simon0820s please verify your commits so we can merge this one

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.

3 participants