feat: update current & surprise queries to support new endpoint

This commit is contained in:
Chuma McPhoy
2024-11-12 14:28:52 +01:00
parent 48af26a772
commit 31a94cfa6a
3 changed files with 89 additions and 28 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ export function getUniqueRewardIds(rewardIds: string[]) {
}
/**
* Uses profile/v1/Profile/tierRewards.
* Will be removed when new endpoint is out in production.
* Uses the legacy profile/v1/Profile/tierRewards endpoint.
* TODO: Delete when the new endpoint is out in production.
*/
export const getAllCachedApiRewards = unstable_cache(
async function (token) {