From 57981960b62cf51d9524d3b5bde9ff67cce765ac Mon Sep 17 00:00:00 2001 From: Slendy Date: Tue, 20 Jun 2023 01:52:08 -0500 Subject: [PATCH] Fix serialization of story levels --- ProjectLighthouse/Types/Serialization/GameDeveloperSlot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse/Types/Serialization/GameDeveloperSlot.cs b/ProjectLighthouse/Types/Serialization/GameDeveloperSlot.cs index 175fb65b..be59f663 100644 --- a/ProjectLighthouse/Types/Serialization/GameDeveloperSlot.cs +++ b/ProjectLighthouse/Types/Serialization/GameDeveloperSlot.cs @@ -32,7 +32,7 @@ public class GameDeveloperSlot : SlotBase, INeedsPreparationForSerialization 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 { CommentCount = database.Comments.Count(c => c.TargetId == this.SlotId && c.Type == CommentType.Level),