backport some missed changes in cash-in and cash-out
This commit is contained in:
parent
3cb5ddb24d
commit
e22333b7af
3 changed files with 15 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ module.exports = {logDispense, logActionById, logAction, logError}
|
|||
function logDispense (t, tx) {
|
||||
const baseRec = {error: tx.error, error_code: tx.errorCode}
|
||||
const rec = _.merge(mapDispense(tx), baseRec)
|
||||
const action = tx.dispenseConfirmed ? 'dispense' : 'dispenseError'
|
||||
const action = _.isEmpty(tx.error) ? 'dispense' : 'dispenseError'
|
||||
return logAction(t, action, rec, tx)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue