@@ -81,15 +81,30 @@ const transactionsGraphqlQuery = `query transactions($dateFrom: DateTime, $limit
8181 }
8282}` ;
8383
84- const nodeToSupporter = ( node ) => ( {
85- name : node . account . name ,
86- slug : node . account . slug ,
87- website : node . account . website ,
88- avatar : node . account . imageUrl ,
89- firstDonation : node . createdAt ,
90- totalDonations : node . totalDonations . value * 100 ,
91- monthlyDonations : 0 ,
92- } ) ;
84+ const additionalInformation = {
85+ 'gem-m' : {
86+ website : 'https://www.noneedtostudy.com/take-my-praxis-test-for-me' ,
87+ avatar :
88+ 'https://webpack.js.org/assets/supporters-noneedtostudy-logo-medium.png' ,
89+ alt : 'Take My Praxis Test For Me - NoNeedToStudy.com Praxis Tutors' ,
90+ } ,
91+ } ;
92+
93+ const nodeToSupporter = ( node ) => {
94+ const { slug } = node . account ;
95+ const info = additionalInformation [ slug ] ;
96+
97+ return {
98+ name : node . account . name ,
99+ website : node . account . website ,
100+ avatar : node . account . imageUrl ,
101+ ...info ,
102+ slug : slug ,
103+ firstDonation : node . createdAt ,
104+ totalDonations : node . totalDonations . value * 100 ,
105+ monthlyDonations : 0 ,
106+ } ;
107+ } ;
93108
94109const getAllNodes = async ( graphqlQuery , getNodes ) => {
95110 const body = {
@@ -113,7 +128,7 @@ const getAllNodes = async (graphqlQuery, getNodes) => {
113128 remaining = 100 ;
114129 }
115130 // Handling pagination if necessary
116-
131+
117132 while ( true ) {
118133 if ( remaining === 0 ) {
119134 console . log ( `Rate limit exceeded. Sleeping until ${ new Date ( reset ) } .` ) ;
0 commit comments