Lots of development

This commit is contained in:
Josh Harvey 2017-03-31 16:45:14 +03:00
parent 5cbec6bd23
commit 3a244f691e
19 changed files with 594 additions and 837 deletions

View file

@ -22,15 +22,10 @@ function unpair (rec) {
return pairing.unpair(rec.deviceId)
}
function repair (rec) {
return pairing.repair(rec.deviceId)
}
function setMachine (rec) {
switch (rec.action) {
case 'resetCashOutBills': return resetCashOutBills(rec)
case 'unpair': return unpair(rec)
case 'repair': return repair(rec)
default: throw new Error('No such action: ' + rec.action)
}
}