hiteshchoudhary / chai-backend

A video series on chai aur code youtube channel
4.69k stars 697 forks source link

updateAccountDetails controller has no check for existing emails #144

Open Nishantdd opened 1 month ago

Nishantdd commented 1 month ago

Issue

updateAccountDetails (src/index :265) controller has no check for if the new email already exists or not There might be conflicts if the user provides an already existing email

Code Preview

Updated Code Preview

Note: Tested with postman, works as intended

Pull Request

143 Enhanced updateAccountDetails logic