Skip to content

Commit

Permalink
don't insert mock data
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-garcia committed Mar 17, 2024
1 parent c2eb59a commit 069dcc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sentaur.Leaderboard.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@
{
context.Database.Migrate();
}
if (!context.ScoreEntries.Any())
// Insert Mock data only when using in-memory DB
else if (!context.ScoreEntries.Any())
{
context.ScoreEntries.AddRange(MockData.MockScores);
context.SaveChanges();
Expand Down

0 comments on commit 069dcc4

Please sign in to comment.