Skip to content

Commit

Permalink
Add missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
jpreynat committed Jun 17, 2024
1 parent 32ce79a commit ae9955e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/cache/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export function cache<Args extends any[], Result>(

if (savedEntry.meta.revalidatesAt && savedEntry.meta.revalidatesAt < Date.now()) {
// Revalidate in the background
waitUntil(revalidate(key, undefined, ...args));
await waitUntil(revalidate(key, undefined, ...args));
}

return savedEntry.data;
Expand Down

0 comments on commit ae9955e

Please sign in to comment.