Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GenOnlineService/Database/Database.DailyStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System.Text.Json;

// TODO_EFCORE: When updating this, make sure we preserve old ON DUPLICATE behavior, to overwrite the old data since day_of_year key will be re-used
public class DailyStat
{
public DailyStat()
Expand Down Expand Up @@ -101,6 +100,7 @@ public static async Task SaveToDB(AppDbContext db)
// Insert if new, otherwise update
if (entity == null)
{
g_StatsContainer = new DailyStat();
entity = g_StatsContainer;
db.DailyStats.Add(entity);
}
Expand Down
Loading