Feat: save highVolumeTxs on DB and plugins code refactor

Fix: remove unused module and add space before '('

Chore: add jest tests for transactionNotify
This commit is contained in:
Cesar 2020-12-04 19:58:17 +00:00 committed by Josh Harvey
parent 366adad375
commit 096c4bc87b
4 changed files with 479 additions and 318 deletions

View file

@ -108,8 +108,13 @@ const buildTransactionMessage = (tx, rec, highValueTx, machineName, customer) =>
status = !isCashOut
? 'Successful'
: !rec.isRedemption
<<<<<<< HEAD
? 'Successful & awaiting redemption'
: 'Successful & dispensed'
=======
? 'Successful & awaiting redemption'
: 'Successful & dispensed'
>>>>>>> 1706b2c... Feat: save highVolumeTxs on DB and plugins code refactor
}
const body = `
@ -136,6 +141,7 @@ const buildTransactionMessage = (tx, rec, highValueTx, machineName, customer) =>
}, highValueTx]
}
<<<<<<< HEAD
function formatCurrency (num, code) {
return numeral(num).format('0,0.00') + ' ' + code
}
@ -180,6 +186,8 @@ function getAlertTypes (alertRec, config) {
return alerts
}
=======
>>>>>>> 1706b2c... Feat: save highVolumeTxs on DB and plugins code refactor
module.exports = {
codeDisplay,
parseEventNote,
@ -192,9 +200,13 @@ module.exports = {
shouldNotAlert,
buildAlertFingerprint,
sendNoAlerts,
<<<<<<< HEAD
buildTransactionMessage,
formatCurrency,
formatAge,
buildDetail,
deviceAlerts
=======
buildTransactionMessage
>>>>>>> 1706b2c... Feat: save highVolumeTxs on DB and plugins code refactor
}