Skip to content

Conversation

Vriti62
Copy link
Contributor

@Vriti62 Vriti62 commented Sep 24, 2025

Closes: #1180

Describe the add-ons or changes you've made πŸ“ƒ

  • Added sortProject controller to fetch projects saved by a user.
  • Supports sorting by:
    • likes β†’ projects sorted by total likes (descending)
    • newest β†’ projects sorted by creation date (descending)
    • oldest β†’ projects sorted by creation date (ascending)
  • Handles projects with both ObjectId and string-type IDs.
  • Returns JSON array of projects saved by the authenticated user.

Screenshots πŸ“·

image

Type of change β˜‘οΈ

What sort of change have you made:

  • [x ] New feature

Note to reviewers πŸ“„

  • Tested using Postman: /sortProject?sortBy=likes|newest|oldest.
  • Returns only projects saved by the user, sorted as requested.

Copy link

vercel bot commented Sep 24, 2025

@Vriti62 is attempting to deploy a commit to the avdheshvarshney's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE.

Copy link
Member

@Avdhesh-Varshney Avdhesh-Varshney left a comment

Choose a reason for hiding this comment

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

LGTM πŸ‘

@Avdhesh-Varshney Avdhesh-Varshney merged commit f368eb7 into Code-A2Z:main Sep 27, 2025
1 check failed
@Avdhesh-Varshney Avdhesh-Varshney linked an issue Sep 27, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backend: Create Fetch Saved Projects with Sorting Endpoint Add Saved Projects Feature with Sorting Options (Backend Implementation)

2 participants