view models
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { LeagueMemberDTO } from '../types/generated/LeagueMemberDTO';
|
||||
import { DriverViewModel } from './DriverViewModel';
|
||||
|
||||
export class LeagueMemberViewModel implements LeagueMemberDTO {
|
||||
driverId: string;
|
||||
@@ -12,7 +13,7 @@ export class LeagueMemberViewModel implements LeagueMemberDTO {
|
||||
|
||||
// Note: The generated DTO is incomplete
|
||||
// These fields will need to be added when the OpenAPI spec is updated
|
||||
driver?: any;
|
||||
driver?: DriverViewModel;
|
||||
role: string = 'member';
|
||||
joinedAt: string = new Date().toISOString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user