From 8533869b3157958ac0a46e677007046c4ad3875b Mon Sep 17 00:00:00 2001 From: StevanFreeborn Date: Tue, 21 Jun 2022 23:31:07 -0500 Subject: [PATCH] fixed bug in seedquotesasync method --- server/Persistence/Seed/Seeder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/Persistence/Seed/Seeder.cs b/server/Persistence/Seed/Seeder.cs index a147267..521bb7a 100644 --- a/server/Persistence/Seed/Seeder.cs +++ b/server/Persistence/Seed/Seeder.cs @@ -64,11 +64,11 @@ namespace server.Persistence.Seed const string fileName = "quotes.json"; var quotesFilePath = Path.Combine(AppContext.BaseDirectory, $"Persistence/Seed/Data/{fileName}"); var quotesJson = await File.ReadAllTextAsync(quotesFilePath); - var quotes = JsonSerializer.Deserialize>(quotesJson); + var quotes = JsonSerializer.Deserialize>(quotesJson); if (quotes != null) { - await _episodes.InsertManyAsync(quotes); + await _quotes.InsertManyAsync(quotes); Console.WriteLine($"Seeded databases with quotes from {fileName}"); }