refactor: knex remaining models

This commit is contained in:
NGPixel committed 2018-05-20 18:50:51 -04:00
1 parent c9b643fbf0
commit 17b2117b39
22 files changed
+426 -447

No files matched your search

+3 -3
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)