Provide customer's daily volume

Provide customer's info on sms phone code
This commit is contained in:
goga-m 2017-08-28 22:26:26 +03:00
parent 1fcd0ec2e8
commit 81b0fadec1
3 changed files with 56 additions and 2 deletions

View file

@ -72,7 +72,7 @@ function isMonotonic (oldField, newField, fieldKey) {
function ensureRatchet (oldField, newField, fieldKey) {
const monotonic = ['cryptoAtoms', 'fiat', 'send', 'sendConfirmed', 'operatorCompleted', 'timedout']
const free = ['sendPending', 'error', 'errorCode']
const free = ['sendPending', 'error', 'errorCode', 'customerId']
if (_.isNil(oldField)) return true
if (_.includes(fieldKey, monotonic)) return isMonotonic(oldField, newField, fieldKey)