Skip to content

Commit 99294bc

Browse files
authored
Change speakerIds to sessionIds (#73)
1 parent 058e1f6 commit 99294bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code/session-8/GraphQL/Types/AttendeeType.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ public async Task<IEnumerable<Session>> GetSessionsAsync(
3535
SessionByIdDataLoader sessionById,
3636
CancellationToken cancellationToken)
3737
{
38-
int[] speakerIds = await dbContext.Attendees
38+
int[] sessionIds = await dbContext.Attendees
3939
.Where(a => a.Id == attendee.Id)
4040
.Include(a => a.SessionsAttendees)
4141
.SelectMany(a => a.SessionsAttendees.Select(t => t.SessionId))
4242
.ToArrayAsync();
4343

44-
return await sessionById.LoadAsync(speakerIds, cancellationToken);
44+
return await sessionById.LoadAsync(sessionIds, cancellationToken);
4545
}
4646
}
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)