refactor league module (wip)

This commit is contained in:
2025-12-22 12:57:10 +01:00
parent 9da528d5bd
commit 03dc81b0ba
39 changed files with 546 additions and 405 deletions

View File

@@ -66,7 +66,7 @@ export class GetLeagueProtestsPresenter implements Presenter<GetLeagueProtestsRe
iracingId: protestingDriver.iracingId.toString(),
name: protestingDriver.name.toString(),
country: protestingDriver.country.toString(),
bio: protestingDriver.bio?.toString(),
bio: protestingDriver.bio?.toString() || '',
joinedAt: protestingDriver.joinedAt.toDate().toISOString(),
};
}
@@ -76,8 +76,8 @@ export class GetLeagueProtestsPresenter implements Presenter<GetLeagueProtestsRe
iracingId: accusedDriver.iracingId.toString(),
name: accusedDriver.name.toString(),
country: accusedDriver.country.toString(),
bio: accusedDriver.bio?.toString(),
joinedAt: accusedDriver.joinedAt.toISOString(),
bio: accusedDriver.bio?.toString() || '',
joinedAt: accusedDriver.joinedAt.toDate().toISOString(),
};
}
}