mirror of
https://github.com/movie-web/backend.git
synced 2025-09-13 13:03:26 +00:00
@@ -41,6 +41,7 @@ export interface UserDTO {
|
|||||||
publicKey: string;
|
publicKey: string;
|
||||||
roles: string[];
|
roles: string[];
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
|
lastLoggedIn?: string;
|
||||||
profile: {
|
profile: {
|
||||||
colorA: string;
|
colorA: string;
|
||||||
colorB: string;
|
colorB: string;
|
||||||
@@ -55,6 +56,7 @@ export function formatUser(user: User): UserDTO {
|
|||||||
publicKey: user.publicKey,
|
publicKey: user.publicKey,
|
||||||
roles: user.roles,
|
roles: user.roles,
|
||||||
createdAt: user.createdAt.toISOString(),
|
createdAt: user.createdAt.toISOString(),
|
||||||
|
lastLoggedIn: user.lastLoggedIn?.toISOString(),
|
||||||
profile: {
|
profile: {
|
||||||
colorA: user.profile.colorA,
|
colorA: user.profile.colorA,
|
||||||
colorB: user.profile.colorB,
|
colorB: user.profile.colorB,
|
||||||
|
Reference in New Issue
Block a user