diff --git a/app/features/user-page/UserRepository.server.ts b/app/features/user-page/UserRepository.server.ts index a5d27bd93..d4d69c18d 100644 --- a/app/features/user-page/UserRepository.server.ts +++ b/app/features/user-page/UserRepository.server.ts @@ -453,8 +453,7 @@ export function findResultsByUserId(userId: number) { "CalendarEvent.name as eventName", "CalendarEventResultTeam.id as teamId", "CalendarEventResultTeam.name as teamName", - // TODO: can we get rid of the "as"? - withMaxEventStartTime(eb as ExpressionBuilder), + withMaxEventStartTime(eb), exists( selectFrom("UserResultHighlight") .where("UserResultHighlight.userId", "=", userId)