add timestamp to cash ready sms
This commit is contained in:
parent
e04ea6c796
commit
a5592b612f
1 changed files with 3 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ const _ = require('lodash/fp')
|
||||||
const argv = require('minimist')(process.argv.slice(2))
|
const argv = require('minimist')(process.argv.slice(2))
|
||||||
const crypto = require('crypto')
|
const crypto = require('crypto')
|
||||||
const pgp = require('pg-promise')()
|
const pgp = require('pg-promise')()
|
||||||
|
const dateFormat = require('dateformat')
|
||||||
|
|
||||||
const BN = require('./bn')
|
const BN = require('./bn')
|
||||||
const dbm = require('./postgresql_interface')
|
const dbm = require('./postgresql_interface')
|
||||||
|
|
@ -300,10 +301,11 @@ function plugins (settings, deviceId) {
|
||||||
logger.debug('notifyConfirmation')
|
logger.debug('notifyConfirmation')
|
||||||
|
|
||||||
const phone = tx.phone
|
const phone = tx.phone
|
||||||
|
const timestamp = dateFormat(new Date(), 'UTC:HH:MM Z')
|
||||||
const rec = {
|
const rec = {
|
||||||
sms: {
|
sms: {
|
||||||
toNumber: phone,
|
toNumber: phone,
|
||||||
body: 'Your cash is waiting! Go to the Cryptomat and press Redeem within 24 hours.'
|
body: `Your cash is waiting! Go to the Cryptomat and press Redeem within 24 hours. [${timestamp}]`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue