Fixed linting issues for json objects and tailing semicolon.

This commit is contained in:
2018-05-09 10:52:08 +02:00
parent 657ab10034
commit 5b49216c9d
3 changed files with 19 additions and 11 deletions

View File

@@ -41,7 +41,7 @@ class UserRepository {
assert(row, 'The user does not exist.');
return row.password;
})
.catch((err) => console.log('there was a error when getting hash', err));
.catch((err) => { console.log(error); throw new Error('Unable to find your user.'); });
}
/**
@@ -57,7 +57,7 @@ class UserRepository {
checkAdmin(user) {
return this.database.get(this.queries.getAdminStateByUser, user.username).then((row) => {
return row.admin;
})
});
}
}