Skip to content

User controller update profile#16

Open
devchuksemeka wants to merge 5 commits into
masterfrom
user_controller_update_profile
Open

User controller update profile#16
devchuksemeka wants to merge 5 commits into
masterfrom
user_controller_update_profile

Conversation

@devchuksemeka

Copy link
Copy Markdown
Collaborator

Action : completes the UpdateProfile function
Date : 1st July 2018

@devchuksemeka devchuksemeka requested a review from wilforlan July 1, 2018 00:19

@wilforlan wilforlan left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I think the loan check should be removed

bvn: req.body.bvn,
password: bcrypt.hashSync(req.body.password)
};
UsersModel.findByIdAndUpdate(userId,userProfileUpdateObject,{new:true},(error,user)=>{

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why do you need to check the user loan status before updating the user profile ??

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.

2 participants