Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion docs/AGENTS.md

This file was deleted.

11 changes: 4 additions & 7 deletions examples/docs/onboarding/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,15 @@ export const order = workflow({
actions: {
// Read which steps have finished so far.
getProgress: async (c) => {
return (await c.db.execute(
"SELECT step FROM progress ORDER BY id",
)) as { step: string }[];
return (await c.db.execute("SELECT step FROM progress ORDER BY id")) as {
step: string;
}[];
},
},
});

// Write one progress row to this order's database.
async function record(
step: WorkflowStepContextOf<typeof order>,
name: string,
) {
async function record(step: WorkflowStepContextOf<typeof order>, name: string) {
await step.db.execute("INSERT INTO progress (step) VALUES (?)", name);
}

Expand Down
Loading
Loading