File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -94,15 +94,8 @@ export async function fetchOpenCollectiveSponsors(
9494 'Content-Type' : 'application/json' ,
9595 } ,
9696 } ) as any
97- if ( data . errors ?. length )
98- throw new Error ( `OpenCollective API error:\n${ JSON . stringify ( data . errors , null , 2 ) } ` )
99-
100- const transactions = data . data ?. account ?. transactions
101- if ( ! transactions )
102- throw new Error ( 'Invalid OpenCollective response: `account.transactions` is missing' )
103-
104- const nodes = transactions . nodes
105- const totalCount = transactions . totalCount
97+ const nodes = data . data . account . transactions . nodes
98+ const totalCount = data . data . account . transactions . totalCount
10699
107100 monthlyTransactions . push ( ...( nodes || [ ] ) )
108101 if ( ( nodes . length ) !== 0 ) {
You can’t perform that action at this time.
0 commit comments