Skip to content

Commit fc6706c

Browse files
committed
Update to add challenge ID to payments response, per Topgear request
1 parent be05a2a commit fc6706c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/reports/topgear/payments.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
SELECT
22
p.payment_id,
3+
w.external_id as challenge_id,
34
p.gross_amount,
45
p.net_amount,
56
p.total_amount,
67
p.payment_status,
78
p.billing_account,
89
p.created_at
910
FROM finance.payment p
11+
INNER JOIN finance.winnings w on p.winnings_id = w.winning_id
1012
WHERE p.created_at >= $1::timestamptz
1113
AND p.created_at <= $2::timestamptz
1214
ORDER BY p.created_at DESC;

0 commit comments

Comments
 (0)