feat: include createdAt in user responses

This commit is contained in:
2026-01-28 05:17:03 -05:00
parent 500f457f97
commit 854e50fe78
2 changed files with 4 additions and 0 deletions
@@ -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
@@ -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; } = [];