diff --git a/app/features/tournament/TournamentAuditLogRepository.server.ts b/app/features/tournament/TournamentAuditLogRepository.server.ts index 78e3d28ed..94fc785b8 100644 --- a/app/features/tournament/TournamentAuditLogRepository.server.ts +++ b/app/features/tournament/TournamentAuditLogRepository.server.ts @@ -9,7 +9,6 @@ export const AUDIT_LOG_PAGE_SIZE = 30; type TournamentAuditLogType = Tables["TournamentAuditLog"]["type"]; -// xxx: can we use TablesInsertable + Pick interface InsertArgs { type: TournamentAuditLogType; /** The user who performed the action. */ @@ -27,7 +26,7 @@ interface InsertArgs { * `TournamentTeamHistory` row exists for the team, so the event remains readable * even after the team is hard-deleted. */ -export async function insert(trx: Transaction, args: InsertArgs) { // xxx: audit codebase, trx as second arg? +export async function insert(trx: Transaction, args: InsertArgs) { await trx .insertInto("TournamentTeamHistory") .columns(["tournamentTeamId", "tournamentId", "name"]) diff --git a/app/features/tournament/components/TournamentHeader.tsx b/app/features/tournament/components/TournamentHeader.tsx index 9bfe38aff..4977f225d 100644 --- a/app/features/tournament/components/TournamentHeader.tsx +++ b/app/features/tournament/components/TournamentHeader.tsx @@ -35,6 +35,8 @@ export function TournamentHeader({ tournament }: { tournament: Tournament }) { (date) => date.getTime(), ); + const currentYear = new Date().getFullYear(); + return (
@@ -62,6 +64,8 @@ export function TournamentHeader({ tournament }: { tournament: Tournament }) { weekday: "long", day: "numeric", month: "long", + year: + date.getFullYear() !== currentYear ? "numeric" : undefined, hour: "numeric", minute: "numeric", }}