File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
src/features/import-projects/rf Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,14 @@ export const fetchRFProjectsByRound = async (round: number) => {
1919
2020 try {
2121 while ( hasNext ) {
22- const response = await fetch (
23- `${ RF_API_URL } /retrofunding/rounds/${ round } /projects?limit=${ limit } &offset=${ offset } ` ,
24- {
25- method : "GET" ,
26- headers : {
27- "Content-Type" : "application/json" ,
28- Authorization : `Bearer ${ AGORA_API_KEY } ` ,
29- } ,
30- }
31- ) ;
22+ const address = `${ RF_API_URL } /retrofunding/rounds/${ round } /projects?limit=${ limit } &offset=${ offset } ` ;
23+ const response = await fetch ( address , {
24+ method : "GET" ,
25+ headers : {
26+ "Content-Type" : "application/json" ,
27+ Authorization : `Bearer ${ AGORA_API_KEY } ` ,
28+ } ,
29+ } ) ;
3230 console . log (
3331 `[${ new Date ( ) . toISOString ( ) } ] - Fetching projects for round: ${ round } at offset: ${ offset } - ${ response . status } - ${ response . ok } `
3432 ) ;
You can’t perform that action at this time.
0 commit comments