Skip to content

Commit

Permalink
Fix key for user session service in example
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman committed Jul 18, 2024
1 parent 861158d commit 0a30b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/user_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (u *userSession) AddTicket(ctx restate.ObjectContext, ticketId string) (boo
return false, err
}

if err := ctx.Object(UserSessionServiceName, ticketId, "ExpireTicket").Send(ticketId, 15*time.Minute); err != nil {
if err := ctx.Object(UserSessionServiceName, userId, "ExpireTicket").Send(ticketId, 15*time.Minute); err != nil {
return false, err
}

Expand Down

0 comments on commit 0a30b99

Please sign in to comment.