Fix serialization of story levels

This commit is contained in:
Slendy 2023-06-20 01:52:08 -05:00
commit 57981960b6
No known key found for this signature in database
GPG key ID: 7288D68361B91428

View file

@ -32,7 +32,7 @@ public class GameDeveloperSlot : SlotBase, INeedsPreparationForSerialization
public async Task PrepareSerialization(DatabaseContext database) public async Task PrepareSerialization(DatabaseContext database)
{ {
var stats = await database.Slots.Where(s => s.SlotId == this.InternalSlotId) var stats = await database.Slots.Where(s => s.SlotId == this.SlotId)
.Select(_ => new .Select(_ => new
{ {
CommentCount = database.Comments.Count(c => c.TargetId == this.SlotId && c.Type == CommentType.Level), CommentCount = database.Comments.Count(c => c.TargetId == this.SlotId && c.Type == CommentType.Level),