Skip to content

Commit

Permalink
🐛 Slow down achievement refreshes (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar authored Dec 18, 2024
1 parent c4e7c09 commit 77c8ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/profile/src/hooks/progressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function useProgressions({
},
{
enabled: !!namespace && !!project,
refetchInterval: 30_000, // Refetch every 30 seconds
refetchInterval: 600_000, // Refetch every 10 minutes
onSuccess: ({ playerAchievements }: { playerAchievements: Response }) => {
const progressions = playerAchievements.items[0].achievements
.map(parser)
Expand Down
2 changes: 1 addition & 1 deletion packages/profile/src/hooks/trophies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function useTrophies({
},
{
enabled: !!namespace && !!project,
refetchInterval: 300_000, // Refetch every 5 minutes
refetchInterval: 600_000, // Refetch every 10 minutes
onSuccess: ({ achievements }: { achievements: Response }) => {
const trophies = achievements.items[0].achievements
.map(parser)
Expand Down

0 comments on commit 77c8ce2

Please sign in to comment.