Skip to content

Commit 2e55b3c

Browse files
committed
chore: track only non credit invoices
1 parent 5d9f1fc commit 2e55b3c

File tree

1 file changed

+2
-1
lines changed
  • src/routes/(console)/organization-[organization]/change-plan

1 file changed

+2
-1
lines changed

src/routes/(console)/organization-[organization]/change-plan/+page.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@
108108
109109
async function trackDowngradeFeedback() {
110110
const paidInvoices = await sdk.forConsole.billing.listInvoices(data.organization.$id, [
111-
Query.equal('status', 'succeeded')
111+
Query.equal('status', 'succeeded'),
112+
Query.greaterThan('grossAmount', 0)
112113
]);
113114
114115
await fetch(`${VARS.GROWTH_ENDPOINT}/feedback/billing`, {

0 commit comments

Comments
 (0)