add timestamp to cash ready sms

This commit is contained in:
Josh Harvey 2017-08-06 18:30:08 +03:00
parent e04ea6c796
commit a5592b612f

View file

@ -3,6 +3,7 @@ const _ = require('lodash/fp')
const argv = require('minimist')(process.argv.slice(2))
const crypto = require('crypto')
const pgp = require('pg-promise')()
const dateFormat = require('dateformat')
const BN = require('./bn')
const dbm = require('./postgresql_interface')
@ -300,10 +301,11 @@ function plugins (settings, deviceId) {
logger.debug('notifyConfirmation')
const phone = tx.phone
const timestamp = dateFormat(new Date(), 'UTC:HH:MM Z')
const rec = {
sms: {
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}]`
}
}