Skip to content

Commit

Permalink
Listen to the correct event for updating models. (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTedder authored and zysim committed Oct 19, 2024
1 parent 3041388 commit 3679011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LeaderboardBackend/Models/Entities/ApplicationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public ApplicationContext(DbContextOptions<ApplicationContext> options, IClock c
{
_clock = clock;
ChangeTracker.Tracked += AddCreationTimestamp;
ChangeTracker.Tracked += SetUpdateTimestamp;
ChangeTracker.StateChanged += SetUpdateTimestamp;
}

public DbSet<AccountRecovery> AccountRecoveries { get; set; } = null!;
Expand Down

0 comments on commit 3679011

Please sign in to comment.