Skip to content

Commit

Permalink
Update README.md (#65)
Browse files Browse the repository at this point in the history
Fix the example showing how mutators can be composed.
  • Loading branch information
bradleyayers authored Jun 24, 2024
1 parent 4cb17da commit 29aa2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async function markAllComplete(tx: WriteTransaction) {
// Mutators are transactional, so this is safe. The entire function will
// run atomically and `t.complete` cannot change while it is running.
if (!t.complete) {
await updateTodo(todo.id, {complete: true});
await updateTodo(tx, {id: todo.id, complete: true});
}
}
}
Expand Down

0 comments on commit 29aa2dc

Please sign in to comment.