refactor: rename cashInFee to fixedFee
This commit is contained in:
parent
35b1a69434
commit
8fc3d7d819
2 changed files with 14 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ const typeDef = gql`
|
||||||
errorCode: String
|
errorCode: String
|
||||||
operatorCompleted: Boolean
|
operatorCompleted: Boolean
|
||||||
sendPending: Boolean
|
sendPending: Boolean
|
||||||
cashInFee: String
|
fixedFee: String
|
||||||
minimumTx: Float
|
minimumTx: Float
|
||||||
customerId: ID
|
customerId: ID
|
||||||
isAnonymous: Boolean
|
isAnonymous: Boolean
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,19 @@ function batch (
|
||||||
excludeTestingCustomers = false,
|
excludeTestingCustomers = false,
|
||||||
simplified
|
simplified
|
||||||
) {
|
) {
|
||||||
const packager = _.flow(_.flatten, _.orderBy(_.property('created'), ['desc']), _.map(camelize), addProfits, addNames)
|
const packager = _.flow(
|
||||||
|
_.flatten,
|
||||||
|
_.orderBy(_.property('created'), ['desc']),
|
||||||
|
_.map(_.flow(
|
||||||
|
camelize,
|
||||||
|
_.mapKeys(k =>
|
||||||
|
k == 'cashInFee' ? 'fixedFee' :
|
||||||
|
k
|
||||||
|
)
|
||||||
|
)),
|
||||||
|
addProfits,
|
||||||
|
addNames
|
||||||
|
)
|
||||||
|
|
||||||
const cashInSql = `SELECT 'cashIn' AS tx_class, txs.*,
|
const cashInSql = `SELECT 'cashIn' AS tx_class, txs.*,
|
||||||
c.phone AS customer_phone,
|
c.phone AS customer_phone,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue