fix: hide anon and show phone on customers
This commit is contained in:
parent
c580db4c76
commit
5f67ff584f
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ type CustomerWithEditedEB = ExpressionBuilder<
|
||||||
'c' | 'e'
|
'c' | 'e'
|
||||||
>
|
>
|
||||||
|
|
||||||
|
const ANON_ID = '47ac1184-8102-11e7-9079-8f13a7117867'
|
||||||
const TX_PASSTHROUGH_ERROR_CODES = [
|
const TX_PASSTHROUGH_ERROR_CODES = [
|
||||||
'operatorCancel',
|
'operatorCancel',
|
||||||
'scoreThresholdReached',
|
'scoreThresholdReached',
|
||||||
|
|
@ -127,6 +128,7 @@ function getCustomerList(
|
||||||
.leftJoinLateral(joinLatestTx, join => join.onTrue())
|
.leftJoinLateral(joinLatestTx, join => join.onTrue())
|
||||||
.select(({ eb, fn, val, ref }) => [
|
.select(({ eb, fn, val, ref }) => [
|
||||||
'c.id',
|
'c.id',
|
||||||
|
'c.phone',
|
||||||
'c.authorizedOverride',
|
'c.authorizedOverride',
|
||||||
'c.frontCameraPath',
|
'c.frontCameraPath',
|
||||||
'c.frontCameraOverride',
|
'c.frontCameraOverride',
|
||||||
|
|
@ -164,6 +166,7 @@ function getCustomerList(
|
||||||
]),
|
]),
|
||||||
]).as('daysSuspended'),
|
]).as('daysSuspended'),
|
||||||
])
|
])
|
||||||
|
.where('c.id', '!=', ANON_ID)
|
||||||
.$if(options.withCustomInfoRequest, qb =>
|
.$if(options.withCustomInfoRequest, qb =>
|
||||||
qb.select(({ eb, ref }) =>
|
qb.select(({ eb, ref }) =>
|
||||||
jsonArrayFrom(
|
jsonArrayFrom(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue