Feat: make SMS transaction notifications more descriptive
This commit is contained in:
parent
04fd82454d
commit
9471da31a4
1 changed files with 4 additions and 3 deletions
|
|
@ -398,14 +398,15 @@ function plugins (settings, deviceId) {
|
||||||
- Customer: ${customerName}
|
- Customer: ${customerName}
|
||||||
${phone}
|
${phone}
|
||||||
`
|
`
|
||||||
const subject = `A ${highValueTx ? 'high value ' : ''}transaction just happened`
|
const smsSubject = `A ${highValueTx ? 'high value ' : ''}${direction.toLowerCase()} transaction just happened at ${machineName} for ${fiat}`
|
||||||
|
const emailSubject = `A ${highValueTx ? 'high value ' : ''}transaction just happened`
|
||||||
|
|
||||||
return [{
|
return [{
|
||||||
sms: {
|
sms: {
|
||||||
body: `${subject} - ${status}`
|
body: `${smsSubject} – ${status}`
|
||||||
},
|
},
|
||||||
email: {
|
email: {
|
||||||
subject,
|
emailSubject,
|
||||||
body
|
body
|
||||||
}
|
}
|
||||||
}, highValueTx]
|
}, highValueTx]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue