docker network

This commit is contained in:
PxlLoewe
2025-06-26 22:19:27 -07:00
parent 4068fdb807
commit dee7f4702d
7 changed files with 48 additions and 54 deletions

View File

@@ -0,0 +1,8 @@
import { Event, Participant } from "@repo/db";
export const eventCompleted = (event: Event, participant?: Participant) => {
if (!participant) return false;
if (event.finisherMoodleCourseId && !participant.finisherMoodleCurseCompleted) return false;
if (event.hasPresenceEvents && !participant.attended) return false;
return true;
};