You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Making /users as public and adding id as query param (#1064)
* made users api route public and checking if the id is prensent in query, then it should give the resulting user
* fixes#983 fixed the route of /users/userId/:id and wrote tests for them, also removed authentication
* made users api route public, accepting id as query param, and written test for it
* removed extra line
* updated test for users
* removing phone and email from user
* removed obfuscating
* removed obfuscating
* added tests for user fields need to be present
* refactored user test
* refactored code for users test
* code refactoring
* updated user id in test of /users/?id
* pushing user to the firestore db
* in users test adding the user to database then fetching the same user and then testing the users/?id route with that users id
* removed try catch block from users controller and in users test veryfing the response.id to be same as the testUser.id
* adding and fetching user only for a test
* removed token and chain code
* removed token and chaincode
* removed tokens and chaincode from models/users
* created a common function to remove fields: phone and email
* function name change
* refactored users test
0 commit comments