Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/docs/workflows/examples/backup-d1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class backupWorkflow extends WorkflowEntrypoint<Env, Params> {
headers.append("Content-Type", "application/json");
headers.append("Authorization", `Bearer ${this.env.D1_REST_API_TOKEN}`);

const bookmark = step.do(`Starting backup for ${databaseId}`, async () => {
const bookmark = await step.do(`Starting backup for ${databaseId}`, async () => {
const payload = { output_format: "polling" };

const res = await fetch(url, { method, headers, body: JSON.stringify(payload) });
Expand All @@ -75,7 +75,7 @@ export class backupWorkflow extends WorkflowEntrypoint<Env, Params> {
return result.at_bookmark;
});

step.do("Check backup status and store it on R2", async () => {
await step.do("Check backup status and store it on R2", async () => {
const payload = { current_bookmark: bookmark };

const res = await fetch(url, { method, headers, body: JSON.stringify(payload) });
Expand Down
Loading