Skip to content

Commit 46b5bce

Browse files
committed
update address
1 parent e4c4eb6 commit 46b5bce

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/features/import-projects/rf/index.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)