Skip to content

Commit

Permalink
Fix minor bugs in code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
tillrohrmann committed Jun 30, 2023
1 parent 5bd2940 commit cd99e95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/tutorials/tour-of-restate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ Add the highlighted code snippet to the `addTicket` method in the user session s

```typescript
import * as restate from "@restatedev/restate-sdk";
import { Ticket } from "../generated/proto/example";

async addTicket(request: ReserveTicket): Promise<BoolValue> {
//highlight-start
Expand Down Expand Up @@ -376,7 +377,7 @@ async checkout(request: CheckoutRequest): Promise<BoolValue> {
const success = await checkoutClient.checkout(req);
//highlight-end

return BoolValue.create({ value: true });
return success;
}
```

Expand Down

0 comments on commit cd99e95

Please sign in to comment.