diff --git a/app/routes/events-team_.report.tsx b/app/routes/events-team_.report.tsx index da37eae..4978861 100644 --- a/app/routes/events-team_.report.tsx +++ b/app/routes/events-team_.report.tsx @@ -68,6 +68,8 @@ export async function loader({ context }: { context: RequestContext }) { memberMap[event.created_by].points += 10; } + for (const member of memberMap) if (member.points < 30) member.points -= 30; + return memberMap; }