Skip to content

Commit 9b88217

Browse files
committed
feat: add event time to the metadata field
1 parent 60c542c commit 9b88217

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

VirtualFinland.UserAPI/src/VirtualFinland.UsersAPI/Models/UsersDatabase/AuditableMetadata.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ public AuditableMetadata(IRequestAuthenticationCandinate user)
1818
TraceId = user.TraceId;
1919
Issuer = user.Issuer;
2020
Audience = user.Audience;
21+
EventTime = DateTime.UtcNow;
2122
}
2223

2324
public string? TraceId { get; set; }
2425
public string? Issuer { get; set; }
2526
public string? Audience { get; set; }
27+
public DateTime EventTime { get; set; }
2628

2729
public override string ToString()
2830
{

0 commit comments

Comments
 (0)