Fix server hang issue

This commit is contained in:
John Lyon-Smith
2018-04-13 09:34:34 -07:00
parent 9cfb173d1b
commit bdc80c5b01
9 changed files with 86 additions and 49 deletions

View File

@@ -79,7 +79,7 @@ export class AuthRoutes {
let User = this.db.User
if (!email || !password) {
createError.BadRequest("Must supply user name and password")
throw createError.BadRequest("Must supply user name and password")
}
// Lookup the user