support sanctions compliance

This commit is contained in:
Josh Harvey 2018-05-03 20:18:13 +03:00
parent 80e851fb59
commit d904c8391e
5 changed files with 108 additions and 25 deletions

View file

@ -23,6 +23,10 @@ const NUM_RESULTS = 20
function add (customer) {
const sql = 'insert into customers (id, phone, phone_at) values ($1, $2, now()) returning *'
return db.one(sql, [uuid.v4(), customer.phone])
.then(populateOverrideUsernames)
.then(computeStatus)
.then(populateDailyVolume)
.then(camelize)
}
/**