Skip to content

Commit

Permalink
Fix get profile sometimes not put to cache (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel authored Aug 29, 2023
1 parent c7db413 commit df3f99f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/mainnet-squid/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const getProfile = poolQuery<string, GetProfilesQuery['accounts'][number]>({
})
return res.accounts
},
resultMapper: {
paramToKey: (param) => param,
resultToKey: (res) => res.id,
},
})
export const getProfileQuery = createQuery({
key: 'getProfile',
Expand Down

0 comments on commit df3f99f

Please sign in to comment.