Skip to content

Commit

Permalink
fix: get available fingerprint from paymentIntent orders
Browse files Browse the repository at this point in the history
  • Loading branch information
kewitz committed Mar 1, 2024
1 parent 115d774 commit ea8ef6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/lib/security/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit ea8ef6a

Please sign in to comment.