From 54921007c3b649484ff92bce86cd6837e3c9248e Mon Sep 17 00:00:00 2001 From: CahidArda Date: Thu, 15 Aug 2024 15:00:52 +0300 Subject: [PATCH] fix: revert time changes in examples --- examples/workflow/nextjs/app/sleep/route.ts | 2 +- examples/workflow/nextjs/app/sleepWithoutAwait/route.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/workflow/nextjs/app/sleep/route.ts b/examples/workflow/nextjs/app/sleep/route.ts index ca1d281..f79c7ae 100644 --- a/examples/workflow/nextjs/app/sleep/route.ts +++ b/examples/workflow/nextjs/app/sleep/route.ts @@ -22,7 +22,7 @@ export const POST = serve({ return output }); - await context.sleep("sleep2", 3600) + await context.sleep("sleep2", 2) const result3 = await context.run("step3", async () => { const output = someWork(result2) diff --git a/examples/workflow/nextjs/app/sleepWithoutAwait/route.ts b/examples/workflow/nextjs/app/sleepWithoutAwait/route.ts index ae0ce84..a2e652c 100644 --- a/examples/workflow/nextjs/app/sleepWithoutAwait/route.ts +++ b/examples/workflow/nextjs/app/sleepWithoutAwait/route.ts @@ -53,7 +53,7 @@ export const POST = serve({ console.log(x, " send receipt", charge.invoice.email); return 10 }), - context.sleep("sleep", 3600) + context.sleep("sleep", 5) ]) console.log("end", updateDb, receipt, wait); return