refactor: knex remaining models

This commit is contained in:
NGPixel
2018-05-20 18:50:51 -04:00
parent c9b643fbf0
commit 17b2117b39
22 changed files with 426 additions and 447 deletions

View File

@@ -23,12 +23,12 @@ module.exports = {
}).then((user) => {
if (user) {
return user.verifyPassword(uPassword).then(() => {
return done(null, user) || true
done(null, user)
}).catch((err) => {
return done(err, null)
done(err, null)
})
} else {
return done(new WIKI.Error.AuthLoginFailed(), null)
done(new WIKI.Error.AuthLoginFailed(), null)
}
}).catch((err) => {
done(err, null)