Skip to content

Commit

Permalink
fix: revert time changes in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
CahidArda committed Aug 15, 2024
1 parent f2f40d3 commit 5492100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/workflow/nextjs/app/sleep/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const POST = serve<string>({
return output
});

await context.sleep("sleep2", 3600)
await context.sleep("sleep2", 2)

const result3 = await context.run("step3", async () => {
const output = someWork(result2)
Expand Down
2 changes: 1 addition & 1 deletion examples/workflow/nextjs/app/sleepWithoutAwait/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const POST = serve<Invoice>({
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
Expand Down

0 comments on commit 5492100

Please sign in to comment.