diff --git a/server/lib/security/order.ts b/server/lib/security/order.ts index 99e0ca07a9c..65d72f1c3a9 100644 --- a/server/lib/security/order.ts +++ b/server/lib/security/order.ts @@ -24,6 +24,8 @@ const BASE_STATS_QUERY = ` COALESCE( COUNT( DISTINCT COALESCE( + NULLIF(o."data"#>>'{paymentIntent,last_payment_error,payment_method,card,fingerprint}', ''), + NULLIF(o."data"#>>'{paymentIntent,last_payment_error,payment_method,us_bank_account,fingerprint}', ''), NULLIF(CONCAT(pm."name", pm."data"->>'expYear'), ''), pm."id"::TEXT )