fix: multiple small fixes
This commit is contained in:
parent
6b44c6aa37
commit
d8f163af74
11 changed files with 135 additions and 152 deletions
|
|
@ -12,7 +12,7 @@ function getHardwareCredentials () {
|
|||
return db.any(sql)
|
||||
}
|
||||
|
||||
function getHardwareCredentialsOfUser (userID) {
|
||||
function getHardwareCredentialsByUserId (userID) {
|
||||
const sql = `SELECT * FROM hardware_credentials WHERE user_id=$1`
|
||||
return db.any(sql, [userID])
|
||||
}
|
||||
|
|
@ -30,7 +30,7 @@ function updateHardwareCredential (credential) {
|
|||
module.exports = {
|
||||
createHardwareCredential,
|
||||
getHardwareCredentials,
|
||||
getHardwareCredentialsOfUser,
|
||||
getHardwareCredentialsByUserId,
|
||||
getUserByUserHandle,
|
||||
updateHardwareCredential
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue