Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3 from fishtown-analytics/fix/charges
Browse files Browse the repository at this point in the history
updated the charges model to pull the correct id
  • Loading branch information
jthandy authored Jun 8, 2017
2 parents a015472 + 62bf643 commit d7e5d79
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ with charges as (
)

select
id,
id as event_id,
data__object__id as charge_id,
data__object__customer as customer_id,
data__object__invoice as invoice_id,
data__object__balance_transaction as balance_transaction_id,
data__object__amount as amount,
trim('charge.' from "type") as result,
replace("type", 'charge.', '') as result,
data__object__created as created_at
from charges
where "type" like 'charge.%'

0 comments on commit d7e5d79

Please sign in to comment.