improve handling of ratchet error

This commit is contained in:
Josh Harvey 2018-01-25 20:15:22 +02:00
parent fc17d2cdf8
commit d7a5734818
4 changed files with 6 additions and 3 deletions

View file

@ -245,7 +245,6 @@ function preProcess (oldTx, newTx, pi) {
const hasDispenseOccurred = !dispenseOccurred(oldTx.bills) && dispenseOccurred(newTx.bills)
if (hasError || hasDispenseOccurred) {
console.log('DEBUG100')
return logDispense(updatedTx)
.then(updateCassettes(updatedTx))
}