Skip to content

Commit

Permalink
Correct state key to "count"
Browse files Browse the repository at this point in the history
  • Loading branch information
tillrohrmann committed Jul 3, 2024
1 parent e13df4b commit af1fb62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/restate-sdk-examples/src/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const counter = restate.object({
add: async (ctx: restate.ObjectContext, amount: number) => {
const current = await ctx.get<number>("count");
const updated = (current ?? 0) + amount;
ctx.set("seen", updated);
ctx.set("count", updated);
return updated;
},

Expand Down

0 comments on commit af1fb62

Please sign in to comment.