Real-Dev-Squad / website-backend

The backend code for all our website-related apps
https://api.realdevsquad.com/
MIT License
55 stars 258 forks source link

Refactor user utility functions to use data-access layer #2203

Closed pankajjs closed 1 month ago

pankajjs commented 1 month ago

Date: 8 Oct, 2024

Developer Name: Pankaj Sha


Issue Ticket Number

This PR refactors user's utility functions to use data-access layer.

Documentation Updated?

Under Feature Flag

Database Changes

Breaking Changes

Development Tested?

Test Coverage

Screenshot 1 Screenshot 2024-10-08 at 1 03 23 PM
vinit717 commented 1 month ago

Can you add the screenshot of API response which uses the function you have changed

pankajjs commented 1 month ago

Can you add the screenshot of API response which uses the function you have changed

I have made changes in retrieveUsers of dataAccessLayer. It has different responses based on the parameter. For the null case, which I have handled the response look like this - { userExists: false, } The Api which uses dataAccessLayer - GET /auctions/:id

Screenshot 2024-10-10 at 9 54 14 PM