Skip to content

Commit ccf7974

Browse files
authored
Workshop typo fixes (#98)
1 parent dbd48f2 commit ccf7974

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

docs/4-schema-design.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,6 @@ mkdir GraphQL/Sessions
915915
}
916916

917917
Session session = await context.Sessions.FindAsync(input.SessionId);
918-
int? initialTrackId = session.TrackId;
919918

920919
if (session is null)
921920
{

docs/7-subscriptions.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ With the base in, we now can focus on putting subscriptions on our GraphQL serve
498498
}
499499

500500
Session session = await context.Sessions.FindAsync(input.SessionId);
501-
int? initialTrackId = session.TrackId;
502501

503502
if (session is null)
504503
{
@@ -693,7 +692,7 @@ The `onSessionScheduled` was quite simple since we did not subscribe to a dynami
693692
public Task<Session> GetSessionAsync(
694693
SessionByIdDataLoader sessionById,
695694
CancellationToken cancellationToken) =>
696-
sessionById.LoadAsync(AttendeeId, cancellationToken);
695+
sessionById.LoadAsync(SessionId, cancellationToken);
697696
}
698697
}
699698
```
@@ -719,9 +718,7 @@ The `onSessionScheduled` was quite simple since we did not subscribe to a dynami
719718
[Subscribe(With = nameof(SubscribeToOnAttendeeCheckedInAsync))]
720719
public SessionAttendeeCheckIn OnAttendeeCheckedIn(
721720
[ID(nameof(Session))] int sessionId,
722-
[EventMessage] int attendeeId,
723-
SessionByIdDataLoader sessionById,
724-
CancellationToken cancellationToken) =>
721+
[EventMessage] int attendeeId) =>
725722
new SessionAttendeeCheckIn(attendeeId, sessionId);
726723

727724
public async ValueTask<ISourceStream<int>> SubscribeToOnAttendeeCheckedInAsync(

0 commit comments

Comments
 (0)