i’m currently working on the voting app. but i’m having a problem
when i try to register with a pre-registered username and passport gives the error “a user with the given username is already registered”
my heroku app crashes , and it doesn’t restart . even though i tried "heroku ps:scale web=1"
here’s the code of my express/mongodb server:: https://github.com/BahaaZidan/ex40/tree/master/server
and here’s the heroku log .
any help is appreciated. thanks in advance.