Skip to content

Commit c2ffd53

Browse files
committed
Preserve cache race coverage with versioned user records
1 parent 323bb86 commit c2ffd53

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/Exceptionless.Core/Models

‎src/Exceptionless.Core/Models/User.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ public record User : IIdentity, IHaveDates, IVersioned, IValidatableObject
1919
/// </summary>
2020
public ISet<string> OrganizationIds { get; init; } = new HashSet<string>();
2121

22-
// Repository concurrency metadata also survives serialized cache reads.
23-
public string Version { get; set; } = null!;
24-
2522
/// <summary>
2623
/// Session revocation generation, rotated when a password changes or resets, or an external login is removed or transferred away.
2724
/// Remains null until rotation; active users with a null generation accept only matching legacy null token generations.
@@ -67,6 +64,9 @@ public record User : IIdentity, IHaveDates, IVersioned, IValidatableObject
6764
public DateTime CreatedUtc { get; set; }
6865
public DateTime UpdatedUtc { get; set; }
6966

67+
// Repository concurrency metadata also survives serialized cache reads.
68+
public string Version { get; set; } = null!;
69+
7070
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
7171
{
7272
if (IsEmailAddressVerified)

0 commit comments

Comments
 (0)