mediumaquamarine / impossiblebigoquiz

The impossible big o quiz
0 stars 4 forks source link

message in commit #169

Closed sethkoch closed 7 years ago

sethkoch commented 7 years ago

has bug in the /users route, changed the write to database if statement to else/if, seems to have fixed the problem. The problem was that the last part of the function would still attempt to write to the database after checking for email duplicates, whether or not there was a duplicate. This then caused an error because it attempted to send a res.json after all ready sending one during the email check.