Fix include calls for the admin DB stuff.
This commit is contained in:
@@ -227,7 +227,7 @@ namespace Content.Server.Database
|
|||||||
return await db.DbContext.Admin
|
return await db.DbContext.Admin
|
||||||
.Include(p => p.Flags)
|
.Include(p => p.Flags)
|
||||||
.Include(p => p.AdminRank)
|
.Include(p => p.AdminRank)
|
||||||
.ThenInclude(p => p.Flags)
|
.ThenInclude(p => p!.Flags)
|
||||||
.SingleOrDefaultAsync(p => p.UserId == userId.UserId);
|
.SingleOrDefaultAsync(p => p.UserId == userId.UserId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user