view data fixes
Some checks failed
Contract Testing / contract-tests (pull_request) Failing after 6m4s
Contract Testing / contract-snapshot (pull_request) Has been skipped

This commit is contained in:
2026-01-23 11:59:49 +01:00
parent ae58839eb2
commit d97f50ed72
191 changed files with 2889 additions and 1019 deletions

View File

@@ -6,7 +6,9 @@ import type { LeagueMemberDTO } from '@/lib/types/generated/LeagueMemberDTO';
*
* Represents the league's memberships in a UI-ready format.
*/
export class LeagueMembershipsViewModel {
import { ViewModel } from "../contracts/view-models/ViewModel";
export class LeagueMembershipsViewModel extends ViewModel {
memberships: LeagueMemberViewModel[];
constructor(dto: { members?: LeagueMemberDTO[]; memberships?: LeagueMemberDTO[] }, currentUserId: string) {