WIPP unpairing
This commit is contained in:
parent
134a016bbd
commit
e537033319
4 changed files with 226 additions and 4049 deletions
|
|
@ -12,6 +12,12 @@ function unpair (deviceId) {
|
|||
return db.none(sql, [deviceId])
|
||||
}
|
||||
|
||||
function repair (deviceId) {
|
||||
const sql = 'update devices set paired=TRUE where device_id=$1'
|
||||
|
||||
return db.none(sql, [deviceId])
|
||||
}
|
||||
|
||||
function totem (hostname, name) {
|
||||
const caPath = options.caPath
|
||||
|
||||
|
|
@ -29,4 +35,4 @@ function totem (hostname, name) {
|
|||
})
|
||||
}
|
||||
|
||||
module.exports = {totem, unpair}
|
||||
module.exports = {totem, unpair, repair}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue