From a5592b612f79f47439e1fba557a5a7cbc95ad1d3 Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Sun, 6 Aug 2017 18:30:08 +0300 Subject: [PATCH] add timestamp to cash ready sms --- lib/plugins.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/plugins.js b/lib/plugins.js index 296d996f..2da081ca 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -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}]` } }