File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -119,10 +119,12 @@ async function getGithubSponsors() {
119119 createdAt
120120 sponsorEntity {
121121 ... on User {
122+ avatarUrl
122123 name
123124 login
124125 }
125126 ... on Organization {
127+ avatarUrl
126128 name
127129 login
128130 }
@@ -146,6 +148,7 @@ async function getGithubSponsors() {
146148 node : {
147149 createdAt : string
148150 sponsorEntity : {
151+ avatarUrl : string
149152 name : string
150153 login : string
151154 } | null
@@ -187,15 +190,15 @@ async function getGithubSponsors() {
187190 return null
188191 }
189192
190- const { name, login } = sponsorEntity
193+ const { avatarUrl , name, login } = sponsorEntity
191194
192195 return {
193196 name,
194197 login,
195198 amount : tier ?. monthlyPriceInDollars || 0 ,
196199 createdAt,
197200 private : privacyLevel === 'PRIVATE' ,
198- imageUrl : '' ,
201+ imageUrl : avatarUrl ,
199202 linkUrl : '' ,
200203 }
201204 } )
You can’t perform that action at this time.
0 commit comments