diff --git a/SVSim.Bootstrap/Importers/BattlePassImporter.cs b/SVSim.Bootstrap/Importers/BattlePassImporter.cs index 50c0c96..37033ef 100644 --- a/SVSim.Bootstrap/Importers/BattlePassImporter.cs +++ b/SVSim.Bootstrap/Importers/BattlePassImporter.cs @@ -14,9 +14,13 @@ public class BattlePassImporter public async Task ImportAsync(SVSimDbContext context, string seedDir) { var seed = SeedLoader.LoadList(Path.Combine(seedDir, "battle-pass-levels.json")); - if (seed.Count == 0) return 0; + if (seed.Count == 0) + { + Console.WriteLine("[BattlePassImporter] No seed rows; skipping."); + return 0; + } - var existing = await context.BattlePassLevels.ToDictionaryAsync(e => e.Id); + var existing = await context.BattlePassLevels.ToDictionaryAsync(e => e.Level); int created = 0, updated = 0; foreach (var s in seed) {