File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/routes/(console)/organization-[organization]/change-plan Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 33
33
import { onMount } from ' svelte' ;
34
34
import { loadAvailableRegions } from ' $routes/(console)/regions' ;
35
35
import EstimatedTotalBox from ' $lib/components/billing/estimatedTotalBox.svelte' ;
36
-
36
+ import { Query } from ' @appwrite.io/console ' ;
37
37
export let data;
38
38
39
39
let selectedCoupon: Partial <Coupon > = null ;
114
114
null
115
115
);
116
116
117
+ const paidInvoices = await sdk .forConsole .billing .listInvoices (data .organization .$id , [
118
+ Query .equal (' status' , ' succeeded' )
119
+ ]);
120
+
117
121
await fetch (` ${VARS .GROWTH_ENDPOINT }/feedback/billing ` , {
118
122
method: ' POST' ,
119
123
headers: {
128
132
)?.label ,
129
133
orgId: data .organization .$id ,
130
134
userId: data .account .$id ,
135
+ orgAge: data .organization .$createdAt ,
136
+ userAge: data .account .$createdAt ,
137
+ paidInvoices: paidInvoices .total ,
131
138
message: feedbackMessage ?? ' '
132
139
})
133
140
});
You can’t perform that action at this time.
0 commit comments