WIPP unpairing

This commit is contained in:
Josh Harvey 2017-03-18 18:49:50 +02:00
parent 134a016bbd
commit e537033319
4 changed files with 226 additions and 4049 deletions

View file

@ -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}