diff --git a/SharpbinV3.Server/Controllers/UserController.cs b/SharpbinV3.Server/Controllers/UserController.cs index 0be3e60..6be4745 100644 --- a/SharpbinV3.Server/Controllers/UserController.cs +++ b/SharpbinV3.Server/Controllers/UserController.cs @@ -360,6 +360,7 @@ namespace SharpbinV3.Server.Controllers { ID = p.ID, UUID = p.UUID, + CreatedAt = p.CreatedAt, Title = p.Title, Syntax = p.Syntax, Size = p.Size, @@ -396,6 +397,7 @@ namespace SharpbinV3.Server.Controllers UID = user.UID, Username = user.Username, UUID = user.UUID, + CreatedAt = user.CreatedAt, DisplayName = user.DisplayName, Email = user.Email, LastLogin = user.LastLogin, @@ -422,6 +424,7 @@ namespace SharpbinV3.Server.Controllers UID = user.UID, Username = user.Username, UUID = user.UUID, + CreatedAt = user.CreatedAt, DisplayName = user.DisplayName, Roles = user.Roles, Visibility = user.Visibility diff --git a/SharpbinV3.Server/DTOs/User/UserResponseDto.cs b/SharpbinV3.Server/DTOs/User/UserResponseDto.cs index e810dfa..459ab64 100644 --- a/SharpbinV3.Server/DTOs/User/UserResponseDto.cs +++ b/SharpbinV3.Server/DTOs/User/UserResponseDto.cs @@ -4,6 +4,7 @@ namespace SharpbinV3.Server.DTOs.User { public int? UID { get; set; } public Guid UUID { get; set; } + public long CreatedAt { get; set; } public string Username { get; set; } = string.Empty; public string? DisplayName { get; set; } public int[] Roles { get; set; } = [];