Skip to content

Commit

Permalink
fix: always resolve dispense
Browse files Browse the repository at this point in the history
  • Loading branch information
siiky committed Dec 4, 2024
1 parent 9654992 commit 24d6637
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/genmega/genmega-dispenser/genmega-dispenser.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ BillDispenser.prototype._retract = function () {
BillDispenser.prototype.dispense = function dispense (notes, _currentBatch, _batchAmount) {
const asDispenser = resolve => {
const ret = this._dispense(notes)
if (ret.error) {
if (ret.error)
this.close()
return resolve(ret)
}
return resolve(ret)
}

const asRecycler = resolve => {
Expand Down

0 comments on commit 24d6637

Please sign in to comment.