Skip to content

Commit

Permalink
fix: lvpr.tv
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcadams committed Apr 3, 2024
1 parent ca60769 commit e752db3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/lvpr-tv/src/components/player/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,17 @@ const getPlaybackInfoUncached = cache(async (playbackId: string) => {
return playbackInfo.playbackInfo;
});

const getPlaybackInfo = (id: string) => {
const getPlaybackInfo = async (id: string) => {
try {
return unstable_cache(
const result = await unstable_cache(
async () => getPlaybackInfoUncached(id),
["get-playback-info", id],
{
revalidate: 120,
},
)();

return result;
} catch (e) {
console.error(e);
return null;
Expand Down

0 comments on commit e752db3

Please sign in to comment.