Fix include calls for the admin DB stuff.

This commit is contained in:
Pieter-Jan Briers
2020-11-02 00:23:34 +01:00
parent 0e419ad321
commit 6980ff84b0

View File

@@ -227,7 +227,7 @@ namespace Content.Server.Database
return await db.DbContext.Admin
.Include(p => p.Flags)
.Include(p => p.AdminRank)
.ThenInclude(p => p.Flags)
.ThenInclude(p => p!.Flags)
.SingleOrDefaultAsync(p => p.UserId == userId.UserId);
}