Skip to content

Commit

Permalink
type and version fixedfor dcgtc#469
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-maz committed Oct 31, 2021
1 parent 63e1389 commit 346f725
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const DefaultForageConfig: LocalForageConfig = {
// this store should be used for any on-chain/off-chain data but never user data (as we might clear it without notice)
name: 'dGrants',
// we can bump this version number to bust the users cache
version: 3,
version: 2,
};

// LocalForage keys
Expand Down
6 changes: 5 additions & 1 deletion app/src/utils/data/contributions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ export async function getContributions(

const limit = 100;

const fetchUntilAll = async (SUBGRAPH_URL: string, before: any[] = [], skip = 0): Promise<any[]> => {
const fetchUntilAll = async (
SUBGRAPH_URL: string,
before: ContributionSubgraph[] = [],
skip = 0
): Promise<any[]> => {
const res = await fetch(SUBGRAPH_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
Expand Down

0 comments on commit 346f725

Please sign in to comment.