From 1cdd9ead7c5e236c22cb37b2656e572c76ff1c55 Mon Sep 17 00:00:00 2001 From: Delba de Oliveira Date: Wed, 15 Nov 2023 15:39:23 +0000 Subject: [PATCH] Add setTimeout --- dashboard/final-example/app/lib/data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/final-example/app/lib/data.ts b/dashboard/final-example/app/lib/data.ts index 6b052e5d..b2b84382 100644 --- a/dashboard/final-example/app/lib/data.ts +++ b/dashboard/final-example/app/lib/data.ts @@ -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`SELECT * FROM revenue`;