From 5f67ff584f7038f4eb721ff265bf21de39ad699b Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Mon, 26 May 2025 11:06:06 +0100 Subject: [PATCH] fix: hide anon and show phone on customers --- packages/typesafe-db/src/customers.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/typesafe-db/src/customers.ts b/packages/typesafe-db/src/customers.ts index fbf47bfa..104a02b8 100644 --- a/packages/typesafe-db/src/customers.ts +++ b/packages/typesafe-db/src/customers.ts @@ -9,6 +9,7 @@ type CustomerWithEditedEB = ExpressionBuilder< 'c' | 'e' > +const ANON_ID = '47ac1184-8102-11e7-9079-8f13a7117867' const TX_PASSTHROUGH_ERROR_CODES = [ 'operatorCancel', 'scoreThresholdReached', @@ -127,6 +128,7 @@ function getCustomerList( .leftJoinLateral(joinLatestTx, join => join.onTrue()) .select(({ eb, fn, val, ref }) => [ 'c.id', + 'c.phone', 'c.authorizedOverride', 'c.frontCameraPath', 'c.frontCameraOverride', @@ -164,6 +166,7 @@ function getCustomerList( ]), ]).as('daysSuspended'), ]) + .where('c.id', '!=', ANON_ID) .$if(options.withCustomInfoRequest, qb => qb.select(({ eb, ref }) => jsonArrayFrom(