feat: update current & surprise queries to support new endpoint
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user