Skip to content

Commit

Permalink
Add setTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
delbaoliveira committed Nov 15, 2023
1 parent 0a2b32d commit 1cdd9ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/final-example/app/lib/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function fetchRevenue() {
// Don't do this in real life :)

// console.log('Fetching revenue data...');
// await new Promise((resolve) => setTimeout(resolve, 3000));
await new Promise((resolve) => setTimeout(resolve, 3000));

const data = await sql<Revenue>`SELECT * FROM revenue`;

Expand Down

0 comments on commit 1cdd9ea

Please sign in to comment.