Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 23935bd

Browse files
davidfowlDamianEdwards
authored andcommitted
Fixed db -> _context
1 parent 2bae449 commit 23935bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/5. Add personal agenda.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ dotnet aspnet-codegenerator identity --dbContext FrontEnd.Data.IdentityDbContext
344344
[HttpGet("{username}/sessions")]
345345
public async Task<ActionResult<List<SessionResponse>>> GetSessions(string username)
346346
{
347-
var sessions = await _db.Sessions.AsNoTracking()
347+
var sessions = await _context.Sessions.AsNoTracking()
348348
.Include(s => s.Track)
349349
.Include(s => s.SessionSpeakers)
350350
.ThenInclude(ss => ss.Speaker)

0 commit comments

Comments
 (0)