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 Oct 17, 2024
1 parent 7256354 commit b520dd1
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 b520dd1

Please sign in to comment.