Skip to content

Commit

Permalink
fix(server): removed unnecessary consoles from profileController
Browse files Browse the repository at this point in the history
  • Loading branch information
AdwaithAthman committed Dec 19, 2023
1 parent 7c43fce commit f769d31
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/src/adapters/profileController/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ const profileController = (
});

const changePassword = asyncHandler(async (req: Request, res: Response) => {
console.log("req.body= ", req.body);
const {
userId,
oldPassword,
Expand All @@ -142,7 +141,6 @@ const profileController = (
});

const editProfile = asyncHandler(async (req: Request, res: Response) => {
console.log("req.body= ", req.body);
const profileInfo: ProfileInterface = req.body;
const user = await handleUpdateProfile(profileInfo, dbUserRepository);
res.json({
Expand All @@ -153,7 +151,6 @@ const profileController = (
});

const searchUsers = asyncHandler(async (req: Request, res: Response) => {
console.log("req.query= ", req.query)
const { searchQuery } = req.query as unknown as { searchQuery: string } ;
const users = await handleSearchUsers(searchQuery, dbUserRepository);
res.json({
Expand Down

0 comments on commit f769d31

Please sign in to comment.