From 77c8ce20f69580652dc2b35815dca61a79b2741f Mon Sep 17 00:00:00 2001 From: Bal7hazar Date: Wed, 18 Dec 2024 12:30:02 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Slow=20down=20achievement=20refr?= =?UTF-8?q?eshes=20(#1148)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/profile/src/hooks/progressions.ts | 2 +- packages/profile/src/hooks/trophies.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/profile/src/hooks/progressions.ts b/packages/profile/src/hooks/progressions.ts index cec3a1c77..ac416384d 100644 --- a/packages/profile/src/hooks/progressions.ts +++ b/packages/profile/src/hooks/progressions.ts @@ -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) diff --git a/packages/profile/src/hooks/trophies.ts b/packages/profile/src/hooks/trophies.ts index 4466fdd96..93e14461e 100644 --- a/packages/profile/src/hooks/trophies.ts +++ b/packages/profile/src/hooks/trophies.ts @@ -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)