mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-05 03:02:56 +00:00
dev day #81
This commit is contained in:
@@ -12,6 +12,7 @@ export interface Player {
|
||||
height?: number;
|
||||
weight?: number;
|
||||
image_url?: string;
|
||||
gender?: string;
|
||||
is_active: boolean;
|
||||
created_at?: string;
|
||||
email?: string;
|
||||
@@ -35,6 +36,7 @@ function normalize(p: any): Player {
|
||||
height: p.height ?? p.Height ?? undefined,
|
||||
weight: p.weight ?? p.Weight ?? undefined,
|
||||
image_url: p.image_url ?? p.ImageURL ?? undefined,
|
||||
gender: p.gender ?? p.Gender ?? undefined,
|
||||
is_active: Boolean(p.is_active ?? p.IsActive ?? true),
|
||||
created_at: p.created_at ?? p.CreatedAt ?? undefined,
|
||||
email: p.email ?? p.Email ?? undefined,
|
||||
|
||||
Reference in New Issue
Block a user