Include Creator to avoid nullreference

This commit is contained in:
LumaLivy 2021-11-08 14:03:15 -05:00
parent ac8e1dc303
commit 7e294b8c21

View file

@ -32,6 +32,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
(q => q.User)
.Include(q => q.Slot)
.Include(q => q.Slot.Location)
.Include(q => q.Slot.Creator)
.Where(q => q.User.Username == username)
.AsEnumerable();