Skip to content

Commit

Permalink
feat: changing URL for downloading the score jsonl data export
Browse files Browse the repository at this point in the history
  • Loading branch information
nutrina committed Nov 25, 2024
1 parent 43ff8de commit 0fd1af5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/passport/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe("operation", () => {
await passportProvider.start();

expect(fetchMock).toHaveBeenCalledWith(
"https://public.scorer.gitcoin.co/passport_scores/registry_score.jsonl"
"https://nyc3.digitaloceanspaces.com/regendata/passport/registry_score.jsonl"
);
});

Expand Down Expand Up @@ -99,15 +99,15 @@ describe("operation", () => {
await vi.advanceTimersToNextTimerAsync();

expect(fetchMock).toHaveBeenCalledWith(
"https://public.scorer.gitcoin.co/passport_scores/registry_score.jsonl"
"https://nyc3.digitaloceanspaces.com/regendata/passport/registry_score.jsonl"
);

fetchMock.mockClear();

await vi.advanceTimersToNextTimerAsync();

expect(fetchMock).toHaveBeenCalledWith(
"https://public.scorer.gitcoin.co/passport_scores/registry_score.jsonl"
"https://nyc3.digitaloceanspaces.com/regendata/passport/registry_score.jsonl"
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/passport/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export const createPassportProvider = (

const { db } = state;
const res = await fetch(
"https://public.scorer.gitcoin.co/passport_scores/registry_score.jsonl"
"https://nyc3.digitaloceanspaces.com/regendata/passport/registry_score.jsonl"
);
const { body } = res;

Expand Down

0 comments on commit 0fd1af5

Please sign in to comment.