Skip to content

Commit

Permalink
Merge pull request #1253 from siiky/fix/lam-1213/genmega-dispenser-re…
Browse files Browse the repository at this point in the history
…lease

LAM-1213 fix: always resolve dispense
  • Loading branch information
RafaelTaranto authored Dec 4, 2024
2 parents 9654992 + 24d6637 commit fa10a4b
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 fa10a4b

Please sign in to comment.